From: William A. Rowe Jr Date: Tue, 29 Oct 2002 21:12:34 +0000 (+0000) Subject: Fix memory leak in mod_ssl from internal SSL library allocations X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ffb21c9ef499a0bc4ed28732da072aa558bfacc;p=thirdparty%2Fapache%2Fhttpd.git Fix memory leak in mod_ssl from internal SSL library allocations within SSL_get_peer_certificate and X509_get_pubkey. Submitted by: Zvi Har'El Reviewed by: Madhusudan Mathihalli git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@97344 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_init.c b/ssl_engine_init.c index bf63baf4c1a..b387ccc9447 100644 --- a/ssl_engine_init.c +++ b/ssl_engine_init.c @@ -807,6 +807,7 @@ static int ssl_server_import_key(server_rec *s, ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "Copying DSA parameters from private key to certificate"); ssl_log_ssl_error(APLOG_MARK, APLOG_ERR, s); + EVP_PKEY_free(pubkey); } }