Merge to trunk from release branch:

Plug the leak that Tim just reported.
This commit is contained in:
Guido van Rossum 2002-12-31 19:50:03 +00:00
parent b1dcbd223e
commit a3a243e977

View file

@ -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);
}