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

index a4b77e13e3ad47458b644b8e8d14da3af5fd66da..16d61624a1c3c7351743fa04c6b89e3e15822d91 100644 (file)
@@ -2156,6 +2156,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:
@@ -2164,6 +2165,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;