From a3a243e9779b671efe59d407ca77edff01a32a57 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 31 Dec 2002 19:50:03 +0000 Subject: Merge to trunk from release branch: Plug the leak that Tim just reported. --- Objects/abstract.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/abstract.c b/Objects/abstract.c index 4ac7342..0ce04ef 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -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); } -- cgit v0.12