]> granicus.if.org Git - python/commitdiff
Merge to trunk from release branch:
authorGuido van Rossum <guido@python.org>
Tue, 31 Dec 2002 19:50:03 +0000 (19:50 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 31 Dec 2002 19:50:03 +0000 (19:50 +0000)
Plug the leak that Tim just reported.

Objects/abstract.c

index 4ac73422dc5cea11e4fe44a2ae4cc2edbc1a816c..0ce04ef0b2154bbe997e584db1f2febc646a54b9 100644 (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);
                }