mirror of https://github.com/python/cpython
Merge 3.2
This commit is contained in:
commit
a0364764fd
|
@ -10,6 +10,8 @@ What's New in Python 3.3.0 Beta 2?
|
|||
Core and Builtins
|
||||
-----------------
|
||||
|
||||
- Issue #15404: Refleak in PyMethodObject repr.
|
||||
|
||||
- Issue #15394: An issue in PyModule_Create that caused references to
|
||||
be leaked on some error paths has been fixed. Patch by Julia Lawall.
|
||||
|
||||
|
|
|
@ -244,8 +244,10 @@ method_repr(PyMethodObject *a)
|
|||
else {
|
||||
klassname = _PyObject_GetAttrId(klass, &PyId___name__);
|
||||
if (klassname == NULL) {
|
||||
if (!PyErr_ExceptionMatches(PyExc_AttributeError))
|
||||
if (!PyErr_ExceptionMatches(PyExc_AttributeError)) {
|
||||
Py_XDECREF(funcname);
|
||||
return NULL;
|
||||
}
|
||||
PyErr_Clear();
|
||||
}
|
||||
else if (!PyUnicode_Check(klassname)) {
|
||||
|
|
Loading…
Reference in New Issue