From: Guido van Rossum Date: Fri, 19 Oct 2001 15:17:42 +0000 (+0000) Subject: Fix leak in SSLread in nonblocking mode -- from SF bug #472798. X-Git-Tag: v2.1.2c1~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bad60d9674798a98d69c7563d01240c9753df835;p=thirdparty%2FPython%2Fcpython.git Fix leak in SSLread in nonblocking mode -- from SF bug #472798. (Not a merge from the code on the trunk -- the trunk has evolved perhaps too much.) --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index df10c8fd1370..3c55b4cf122c 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2315,6 +2315,7 @@ static PyObject *SSL_SSLread(SSLObject *self, PyObject *args) assert(count == 0); break; default: + Py_DECREF(buf); return PyErr_SetFromErrno(SSLErrorObject); }