From: Jesus Cea Date: Thu, 19 Jul 2012 19:32:07 +0000 (+0200) Subject: MERGE: Closes #15395: memory leaks in selectmodule.c X-Git-Tag: v3.3.0b2~160 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=024abca053dd18b474b41eba2331d35b24c3bae3;p=thirdparty%2FPython%2Fcpython.git MERGE: Closes #15395: memory leaks in selectmodule.c --- 024abca053dd18b474b41eba2331d35b24c3bae3 diff --cc Modules/selectmodule.c index 8964b675fcb3,98b3108bf3ce..5b5eb92cc688 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@@ -437,7 -420,8 +437,8 @@@ poll_modify(pollObject *self, PyObject return NULL; if (PyDict_GetItem(self->dict, key) == NULL) { errno = ENOENT; - PyErr_SetFromErrno(PyExc_IOError); + PyErr_SetFromErrno(PyExc_OSError); + Py_DECREF(key); return NULL; } value = PyLong_FromLong(events);