summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-12-31 19:50:03 (GMT)
committerGuido van Rossum <guido@python.org>2002-12-31 19:50:03 (GMT)
commita3a243e9779b671efe59d407ca77edff01a32a57 (patch)
treeedb3a1ea621d7bd51556d3cf696ca69d369fd725 /Objects
parentb1dcbd223e7a3d13c3cdbc57f4c88793d8b646ef (diff)
downloadcpython-a3a243e9779b671efe59d407ca77edff01a32a57.zip
cpython-a3a243e9779b671efe59d407ca77edff01a32a57.tar.gz
cpython-a3a243e9779b671efe59d407ca77edff01a32a57.tar.bz2
Merge to trunk from release branch:
Plug the leak that Tim just reported.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c1
1 files changed, 1 insertions, 0 deletions
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);
}