Fix refleak

This commit is contained in:
Neal Norwitz 2006-10-29 23:39:03 +00:00
parent 98c70acf47
commit 7b932da443
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ set_key_error(PyObject *arg)
if (!tup) if (!tup)
return; /* caller will expect error to be set anyway */ return; /* caller will expect error to be set anyway */
PyErr_SetObject(PyExc_KeyError, tup); PyErr_SetObject(PyExc_KeyError, tup);
Py_DECREF(tup);
} }
/* Define this out if you don't want conversion statistics on exit. */ /* Define this out if you don't want conversion statistics on exit. */