[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.141.2.1,1.141.2.2

Guido van Rossum gvanrossum@users.sourceforge.net
Fri, 19 Oct 2001 08:17:44 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv25228

Modified Files:
      Tag: release21-maint
	socketmodule.c 
Log Message:
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.)


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.141.2.1
retrieving revision 1.141.2.2
diff -C2 -d -r1.141.2.1 -r1.141.2.2
*** socketmodule.c	2001/05/09 19:13:40	1.141.2.1
--- socketmodule.c	2001/10/19 15:17:42	1.141.2.2
***************
*** 2316,2319 ****
--- 2316,2320 ----
  		break;
  	default:
+ 		Py_DECREF(buf);
  		return PyErr_SetFromErrno(SSLErrorObject);
  	}