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

Barry Warsaw bwarsaw@users.sourceforge.net
2001年8月20日 15:26:27 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv8298
Modified Files:
	socketmodule.c 
Log Message:
SSL_dealloc(): Apply the change suggested in SF bug #425370 which
 changes the order of the free calls to be the reverse of the alloc
 calls. Closes that bug.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -C2 -d -r1.166 -r1.167
*** socketmodule.c	2001年08月20日 19:06:36	1.166
--- socketmodule.c	2001年08月20日 22:26:24	1.167
***************
*** 2628,2633 ****
 	if (self->server_cert)	/* Possible not to have one? */
 		X509_free (self->server_cert);
- 	SSL_CTX_free(self->ctx);
 	SSL_free(self->ssl);
 	Py_XDECREF(self->x_attr);
 	Py_XDECREF(self->Socket);
--- 2628,2633 ----
 	if (self->server_cert)	/* Possible not to have one? */
 		X509_free (self->server_cert);
 	SSL_free(self->ssl);
+ 	SSL_CTX_free(self->ctx);
 	Py_XDECREF(self->x_attr);
 	Py_XDECREF(self->Socket);

AltStyle によって変換されたページ (->オリジナル) /