]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix leak in SSLread in nonblocking mode -- from SF bug #472798.
authorGuido van Rossum <guido@python.org>
Fri, 19 Oct 2001 15:17:42 +0000 (15:17 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 19 Oct 2001 15:17:42 +0000 (15:17 +0000)
(Not a merge from the code on the trunk -- the trunk has evolved
perhaps too much.)

Modules/socketmodule.c

index df10c8fd1370d55521edeb969423fd575386d1e1..3c55b4cf122cbe6835e0ead20d3a827cff3e07c3 100644 (file)
@@ -2315,6 +2315,7 @@ static PyObject *SSL_SSLread(SSLObject *self, PyObject *args)
                assert(count == 0);
                break;
        default:
+               Py_DECREF(buf);
                return PyErr_SetFromErrno(SSLErrorObject);
        }