mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix SF bug 572567: Memory leak in object comparison.
This commit is contained in:
parent
563d12d145
commit
ab5dae35ca
3 changed files with 14 additions and 0 deletions
|
@ -3286,6 +3286,7 @@ half_compare(PyObject *self, PyObject *other)
|
|||
res = PyObject_Call(func, args, NULL);
|
||||
Py_DECREF(args);
|
||||
}
|
||||
Py_DECREF(func);
|
||||
if (res != Py_NotImplemented) {
|
||||
if (res == NULL)
|
||||
return -2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue