mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Merge to trunk from release branch:
Plug the leak that Tim just reported.
This commit is contained in:
parent
b1dcbd223e
commit
a3a243e977
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue