From: Dr. Stephen Henson Date: Mon, 3 Dec 2012 16:32:52 +0000 (+0000) Subject: fix leak X-Git-Tag: master-pre-reformat~1497 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0db46a7dd79cac420c08d68fc782d561e7927af1;p=openssl fix leak --- diff --git a/apps/apps.c b/apps/apps.c index b378836066..1ad0e137d1 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2355,6 +2355,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: @@ -2363,6 +2364,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;