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.
This commit is contained in:
Barry Warsaw 2001-08-20 22:26:24 +00:00
parent 7c005af915
commit cfb1675736

View file

@ -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);