projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c005af
)
SSL_dealloc(): Apply the change suggested in SF bug #425370 which
author
Barry Warsaw
<barry@python.org>
Mon, 20 Aug 2001 22:26:24 +0000
(22:26 +0000)
committer
Barry Warsaw
<barry@python.org>
Mon, 20 Aug 2001 22:26:24 +0000
(22:26 +0000)
changes the order of the free calls to be the reverse of the alloc
calls. Closes that bug.
Modules/socketmodule.c
patch
|
blob
|
history
diff --git
a/Modules/socketmodule.c
b/Modules/socketmodule.c
index 0917a317e02f93fa7b078d7e9248f2863e250cb6..46ca35fa40906deac9b28c1f2428c024b80b3151 100644
(file)
--- 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);