summaryrefslogtreecommitdiff
path: root/OpenSSL/crypto/x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSSL/crypto/x509.c')
-rw-r--r--OpenSSL/crypto/x509.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSSL/crypto/x509.c b/OpenSSL/crypto/x509.c
index 0754dec..c086ce8 100644
--- a/OpenSSL/crypto/x509.c
+++ b/OpenSSL/crypto/x509.c
@@ -756,6 +756,7 @@ crypto_X509_get_extension(crypto_X509Obj *self, PyObject *args) {
extobj = PyObject_New(crypto_X509ExtensionObj, &crypto_X509Extension_Type);
extobj->x509_extension = X509_EXTENSION_dup(ext);
+ extobj->dealloc = 1;
return (PyObject*)extobj;
}