From 58d31b15d331ef218baa72bf12c9025f629f19d6 Mon Sep 17 00:00:00 2001 From: beck Date: Sun, 27 Apr 2014 15:59:25 +0000 Subject: [PATCH] Fix leak last commit introduced. Spotted by Sebastian Kapfer. --- lib/libcrypto/x509v3/v3_info.c | 1 + lib/libssl/src/crypto/x509v3/v3_info.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/libcrypto/x509v3/v3_info.c b/lib/libcrypto/x509v3/v3_info.c index 9ae1596b1f3..cb02160dbd7 100644 --- a/lib/libcrypto/x509v3/v3_info.c +++ b/lib/libcrypto/x509v3/v3_info.c @@ -185,6 +185,7 @@ v2i_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, X509V3err(X509V3_F_V2I_AUTHORITY_INFO_ACCESS, X509V3_R_BAD_OBJECT); ERR_asprintf_error_data("value=%s", objtmp); + free(objtmp); goto err; } free(objtmp); diff --git a/lib/libssl/src/crypto/x509v3/v3_info.c b/lib/libssl/src/crypto/x509v3/v3_info.c index 9ae1596b1f3..cb02160dbd7 100644 --- a/lib/libssl/src/crypto/x509v3/v3_info.c +++ b/lib/libssl/src/crypto/x509v3/v3_info.c @@ -185,6 +185,7 @@ v2i_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, X509V3err(X509V3_F_V2I_AUTHORITY_INFO_ACCESS, X509V3_R_BAD_OBJECT); ERR_asprintf_error_data("value=%s", objtmp); + free(objtmp); goto err; } free(objtmp); -- 2.20.1