summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2012-02-14 17:18:58 -0500
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2012-02-14 17:18:58 -0500
commit9c98bf96117ac820640737e15341c87fc48d34e9 (patch)
tree604323d7f6b1b60ec797b28ac4e7d3f74d01b8bc
parent068cb599bb7b3d9e05f82a7d54e6a962719e0816 (diff)
downloadpyopenssl-9c98bf96117ac820640737e15341c87fc48d34e9.tar.gz
Use the future-proof-er macro to get the type structure to call the inherited free method.
-rw-r--r--OpenSSL/ssl/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSSL/ssl/session.c b/OpenSSL/ssl/session.c
index fb9c83f..f9932a4 100644
--- a/OpenSSL/ssl/session.c
+++ b/OpenSSL/ssl/session.c
@@ -73,7 +73,7 @@ ssl_Session_dealloc(ssl_SessionObj *self) {
SSL_SESSION_free(self->session);
self->session = NULL;
}
- self->ob_type->tp_free((PyObject*)self);
+ Py_TYPE(self)->tp_free((PyObject*)self);
}
/*