diff Modules/socketmodule.c @ 19415:0928cd62ddea legacy-trunk

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.
author Barry Warsaw <barry@python.org>
date Mon, 20 Aug 2001 22:26:24 +0000
parents 8607bc890b1f
children b0f5278a2ab4
line wrap: on
line diff
--- a/Modules/socketmodule.c	Mon Aug 20 21:48:00 2001 +0000
+++ b/Modules/socketmodule.c	Mon Aug 20 22:26:24 2001 +0000
@@ -2627,8 +2627,8 @@
 {
 	if (self->server_cert)	/* Possible not to have one? */
 		X509_free (self->server_cert);
+	SSL_free(self->ssl);
 	SSL_CTX_free(self->ctx);
-	SSL_free(self->ssl);
 	Py_XDECREF(self->x_attr);
 	Py_XDECREF(self->Socket);
 	PyObject_Del(self);