fix leak
authorDr. Stephen Henson <steve@openssl.org>
Mon, 3 Dec 2012 16:33:24 +0000 (16:33 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 3 Dec 2012 16:33:24 +0000 (16:33 +0000)
apps/apps.c

index 4e11915b025580d88af75bc43524044d10add26e..8dc610199bead81c241b776bbae133df977b86b1 100644 (file)
@@ -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;