summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-08-20 22:26:24 (GMT)
committerBarry Warsaw <barry@python.org>2001-08-20 22:26:24 (GMT)
commitcfb167573680a052c0d4ddc22a5b904d03b0ecac (patch)
treeb5a2cdbd43b78299a0cf4e1cc1e52f30a92d52cb /Modules/socketmodule.c
parent7c005af91540415f3550b2bd1a606e310d8355a5 (diff)
downloadcpython-cfb167573680a052c0d4ddc22a5b904d03b0ecac.zip
cpython-cfb167573680a052c0d4ddc22a5b904d03b0ecac.tar.gz
cpython-cfb167573680a052c0d4ddc22a5b904d03b0ecac.tar.bz2
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.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 0917a31..46ca35f 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -2627,8 +2627,8 @@ static void SSL_dealloc(SSLObject *self)
{
if (self->server_cert) /* Possible not to have one? */
X509_free (self->server_cert);
- SSL_CTX_free(self->ctx);
SSL_free(self->ssl);
+ SSL_CTX_free(self->ctx);
Py_XDECREF(self->x_attr);
Py_XDECREF(self->Socket);
PyObject_Del(self);