]> granicus.if.org Git - openssl/commitdiff
fix leak
authorDr. Stephen Henson <steve@openssl.org>
Mon, 3 Dec 2012 16:32:52 +0000 (16:32 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 3 Dec 2012 16:32:52 +0000 (16:32 +0000)
apps/apps.c

index b378836066ad39d56950ea38601edb3486596dd9..1ad0e137d12adefa5d15b802f1b58c004012dd4e 100644 (file)
@@ -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;