Commit 54fa8f7f authored by Guido van Rossum's avatar Guido van Rossum

Merge to trunk from release branch:

Plug the leak that Tim just reported.
parent aabed4fd
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment