commit | 9c98bf96117ac820640737e15341c87fc48d34e9 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Tue Feb 14 17:18:58 2012 -0500 |
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Tue Feb 14 17:18:58 2012 -0500 |
tree | 604323d7f6b1b60ec797b28ac4e7d3f74d01b8bc | |
parent | 068cb599bb7b3d9e05f82a7d54e6a962719e0816 [diff] [blame] |
Use the future-proof-er macro to get the type structure to call the inherited free method.
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_free(self->session); self->session = NULL; } - self->ob_type->tp_free((PyObject*)self); + Py_TYPE(self)->tp_free((PyObject*)self); } /*