From: Dr. Stephen Henson Date: Mon, 3 Dec 2012 16:33:24 +0000 (+0000) Subject: fix leak X-Git-Tag: OpenSSL_1_0_1d~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=54fdc39a084fcefbf043a18786d5eb5c7849c933;p=oweals%2Fopenssl.git fix leak --- diff --git a/apps/apps.c b/apps/apps.c index 4e11915b02..8dc610199b 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2236,6 +2236,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: @@ -2244,6 +2245,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;