diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-07-30 00:42:06 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-07-30 00:42:06 (GMT) |
commit | cee5ca060bc1e8870fdadf1ef719761fe2dc500d (patch) | |
tree | 34798d68e8c01abd31d5539e43ca19df1b9d7d7e | |
parent | 3bbb617ca4195af7fb9ce5751a78dd6ca3d27e16 (diff) | |
download | cpython-cee5ca060bc1e8870fdadf1ef719761fe2dc500d.zip cpython-cee5ca060bc1e8870fdadf1ef719761fe2dc500d.tar.gz cpython-cee5ca060bc1e8870fdadf1ef719761fe2dc500d.tar.bz2 |
SF patch #587889, fix memory leak of tp_doc
-rw-r--r-- | Objects/typeobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 3def134..6bd2b7a 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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); |