From: beck Date: Sun, 27 Apr 2014 15:59:25 +0000 (+0000) Subject: Fix leak last commit introduced. Spotted by Sebastian Kapfer. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=58d31b15d331ef218baa72bf12c9025f629f19d6;p=openbsd Fix leak last commit introduced. Spotted by Sebastian Kapfer. --- 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);