From: Kaspar Brand Date: Tue, 28 Feb 2012 06:01:23 +0000 (+0000) Subject: properly free the GENERAL_NAMEs, as pointed out in PR 32652 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffcace706b4977a1633d950e362cd0c0b2d8ea60;p=thirdparty%2Fapache%2Fhttpd.git properly free the GENERAL_NAMEs, as pointed out in PR 32652 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1294471 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_util_ssl.c b/modules/ssl/ssl_util_ssl.c index 13362bee297..48b561dc3b1 100644 --- a/modules/ssl/ssl_util_ssl.c +++ b/modules/ssl/ssl_util_ssl.c @@ -325,7 +325,7 @@ BOOL SSL_X509_getIDs(apr_pool_t *p, X509 *x509, apr_array_header_t **ids) } if (names) - sk_GENERAL_NAME_free(names); + sk_GENERAL_NAME_pop_free(names, GENERAL_NAME_free); /* Second, the CN-IDs (commonName attributes in the subject DN) */ subj = X509_get_subject_name(x509);