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 7d22c070f5563efcbba3d5e2a202989e1cb8acf3..f6a28540b51e5af9ca21baf39c1a955a4e029cb2 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 70cf5d766101a70a5702ceafdf0a1217fc9b69dd..5129b002dd803ecd712ff151e4ed2d58934f8a60 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)