mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Merge to trunk from release branch:
Plug the leak that Tim just reported.
This commit is contained in:
@@ -672,6 +672,7 @@ PyNumber_Multiply(PyObject *v, PyObject *w)
|
||||
if (result == Py_NotImplemented) {
|
||||
PySequenceMethods *mv = v->ob_type->tp_as_sequence;
|
||||
PySequenceMethods *mw = w->ob_type->tp_as_sequence;
|
||||
Py_DECREF(result);
|
||||
if (mv && mv->sq_repeat) {
|
||||
return sequence_repeat(mv->sq_repeat, v, w);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user