From ae6b84184b8de1a07f0ff3e8712f5130f88a4d63 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 29 Oct 2006 23:42:59 +0000 Subject: [PATCH] Fix refleak --- Objects/dictobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 1fcfe1cc349..5a5f86074d8 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -23,6 +23,7 @@ set_key_error(PyObject *arg) if (!tup) return; /* caller will expect error to be set anyway */ PyErr_SetObject(PyExc_KeyError, tup); + Py_DECREF(tup); } /* Define this out if you don't want conversion statistics on exit. */