From bad60d9674798a98d69c7563d01240c9753df835 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 19 Oct 2001 15:17:42 +0000 Subject: [PATCH] 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.) --- Modules/socketmodule.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.47.3