From: Dr. Stephen Henson Date: Mon, 3 Dec 2012 16:33:54 +0000 (+0000) Subject: fix leak X-Git-Tag: OpenSSL_0_9_8y~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c42ab440871b1d773fac40b94857f062dce1ad54;p=oweals%2Fopenssl.git fix leak --- diff --git a/apps/apps.c b/apps/apps.c index a4b77e13e3..16d61624a1 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2156,6 +2156,7 @@ X509_NAME *parse_name(char *subject, long chtype, int multirdn) OPENSSL_free(ne_values); OPENSSL_free(ne_types); OPENSSL_free(buf); + OPENSSL_free(mval); return n; error: @@ -2164,6 +2165,8 @@ error: OPENSSL_free(ne_values); if (ne_types) OPENSSL_free(ne_types); + if (mval) + OPENSSL_free(mval); if (buf) OPENSSL_free(buf); return NULL;