diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-29 23:39:03 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-29 23:39:03 (GMT) |
commit | 7b932da4432110c03efcc026d9e9fc19b33207eb (patch) | |
tree | 300b4f497b6b3c74aab42e310245724120c3186c /Objects/dictobject.c | |
parent | 98c70acf473781b653ab145b553320c5e0c7351b (diff) | |
download | cpython-7b932da4432110c03efcc026d9e9fc19b33207eb.zip cpython-7b932da4432110c03efcc026d9e9fc19b33207eb.tar.gz cpython-7b932da4432110c03efcc026d9e9fc19b33207eb.tar.bz2 |
Fix refleak
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r-- | Objects/dictobject.c | 1 |
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. */ |