From: Bill Stoddard Date: Wed, 5 Jun 2002 16:31:37 +0000 (+0000) Subject: Fix a storage leak introduced by my patch last night. Free the req_hdrs on cleanup. X-Git-Tag: 2.0.37~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73eff4e8d6204166b0f92ef992cd35aebefa3673;p=apache Fix a storage leak introduced by my patch last night. Free the req_hdrs on cleanup. Submitted by: Jean-Jacques Clar git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95528 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_mem_cache.c b/modules/experimental/mod_mem_cache.c index 7fb19913e5..de9b655c84 100644 --- a/modules/experimental/mod_mem_cache.c +++ b/modules/experimental/mod_mem_cache.c @@ -181,6 +181,11 @@ static void cleanup_cache_object(cache_object_t *obj) free(mobj->notes[0].hdr); free(mobj->notes); } + if (mobj->req_hdrs) { + if (mobj->req_hdrs[0].hdr) + free(mobj->req_hdrs[0].hdr); + free(mobj->req_hdrs); + } free(mobj); } return;