summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-10-29 23:39:03 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-10-29 23:39:03 (GMT)
commit7b932da4432110c03efcc026d9e9fc19b33207eb (patch)
tree300b4f497b6b3c74aab42e310245724120c3186c /Objects/dictobject.c
parent98c70acf473781b653ab145b553320c5e0c7351b (diff)
downloadcpython-7b932da4432110c03efcc026d9e9fc19b33207eb.zip
cpython-7b932da4432110c03efcc026d9e9fc19b33207eb.tar.gz
cpython-7b932da4432110c03efcc026d9e9fc19b33207eb.tar.bz2
Fix refleak
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 1fcfe1c..5a5f860 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. */