diff Modules/socketmodule.c @ 20569:d06446d4e78d 2.1

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.)
author Guido van Rossum <guido@python.org>
date Fri, 19 Oct 2001 15:17:42 +0000
parents 820e5a0c3112
children 0629666e65c5
line wrap: on
line diff
--- a/Modules/socketmodule.c	Fri Oct 19 15:13:51 2001 +0000
+++ b/Modules/socketmodule.c	Fri Oct 19 15:17:42 2001 +0000
@@ -2315,6 +2315,7 @@
 		assert(count == 0);
 		break;
 	default:
+		Py_DECREF(buf);
 		return PyErr_SetFromErrno(SSLErrorObject);
 	}