From 54fdc39a084fcefbf043a18786d5eb5c7849c933 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 3 Dec 2012 16:33:24 +0000 Subject: [PATCH] fix leak --- apps/apps.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.40.0