From 0b9571d9106d0442efd3c7c08e29f839602fb85b Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 28 Feb 2012 12:07:31 +0000 Subject: [PATCH] Merge r1294471 from trunk: properly free the GENERAL_NAMEs, as pointed out in PR 32652 Submitted by: kbrand Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1294602 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_util_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ssl/ssl_util_ssl.c b/modules/ssl/ssl_util_ssl.c index 13362bee29..48b561dc3b 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); -- 2.40.0