This repository was archived by the owner on Jan 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ What's New in Python 3.3.0 Beta 2?
1010Core and Builtins
1111-----------------
1212
13+ - Issue #15404: Refleak in PyMethodObject repr.
14+
1315- Issue #15394: An issue in PyModule_Create that caused references to
1416 be leaked on some error paths has been fixed. Patch by Julia Lawall.
1517
Original file line number Diff line number Diff line change @@ -244,8 +244,10 @@ method_repr(PyMethodObject *a)
244244 else {
245245 klassname = _PyObject_GetAttrId (klass , & PyId___name__ );
246246 if (klassname == NULL ) {
247- if (!PyErr_ExceptionMatches (PyExc_AttributeError ))
247+ if (!PyErr_ExceptionMatches (PyExc_AttributeError )) {
248+ Py_XDECREF (funcname );
248249 return NULL ;
250+ }
249251 PyErr_Clear ();
250252 }
251253 else if (!PyUnicode_Check (klassname )) {
You can’t perform that action at this time.
0 commit comments