summaryrefslogtreecommitdiff
path: root/OpenSSL/crypto
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2013-10-03 15:24:23 -0400
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2013-10-03 15:24:23 -0400
commitf7e37e6b2f83f7fd00f7e5aaee9ecc55e349fd87 (patch)
tree9ab8dd6b7fe984902198b805f5203239abd6cd94 /OpenSSL/crypto
parent6bbf44a00b35fb28df1f66aa194b2fe95eab1ab2 (diff)
downloadpyopenssl-f7e37e6b2f83f7fd00f7e5aaee9ecc55e349fd87.tar.gz
Fix a memory management issue that leads to crashes in OpenSSL.crypto.X509.get_serial_number in some environments.
Diffstat (limited to 'OpenSSL/crypto')
-rw-r--r--OpenSSL/crypto/x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSSL/crypto/x509.c b/OpenSSL/crypto/x509.c
index 8ee4bff..9a4fe94 100644
--- a/OpenSSL/crypto/x509.c
+++ b/OpenSSL/crypto/x509.c
@@ -78,7 +78,7 @@ crypto_X509_get_serial_number(crypto_X509Obj *self, PyObject *args)
hex = BN_bn2hex(bignum);
res = PyLong_FromString(hex, NULL, 16);
BN_free(bignum);
- free(hex);
+ OPENSSL_free(hex);
return res;
}