Commit cee5ca06 authored by Neal Norwitz's avatar Neal Norwitz

SF patch #587889, fix memory leak of tp_doc

parent 3bbb617c
......@@ -1462,6 +1462,7 @@ type_dealloc(PyTypeObject *type)
Py_XDECREF(type->tp_mro);
Py_XDECREF(type->tp_cache);
Py_XDECREF(type->tp_subclasses);
PyObject_Free(type->tp_doc);
Py_XDECREF(et->name);
Py_XDECREF(et->slots);
type->ob_type->tp_free((PyObject *)type);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment