fix leaks
authorDr. Stephen Henson <steve@openssl.org>
Tue, 20 Nov 2012 00:24:52 +0000 (00:24 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 20 Nov 2012 00:24:52 +0000 (00:24 +0000)
apps/s_client.c
apps/s_server.c

index 7d22c07..f6a2854 100644 (file)
@@ -1956,6 +1956,8 @@ end:
                EVP_PKEY_free(key);
        if (pass)
                OPENSSL_free(pass);
+       if (vpm)
+               X509_VERIFY_PARAM_free(vpm);
        ssl_excert_free(exc);
        if (ssl_args)
                sk_OPENSSL_STRING_free(ssl_args);
index 70cf5d7..5129b00 100644 (file)
@@ -2040,6 +2040,8 @@ end:
                OPENSSL_free(pass);
        if (dpass)
                OPENSSL_free(dpass);
+       if (vpm)
+               X509_VERIFY_PARAM_free(vpm);
        free_sessions();
 #ifndef OPENSSL_NO_TLSEXT
        if (tlscstatp.host)