From: André Malo Date: Fri, 27 Aug 2004 19:29:57 +0000 (+0000) Subject: Fix memory leak. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be3490a6c0cbbae664f06c0f4ae1f2b64e3371bb;p=thirdparty%2Fapache%2Fhttpd.git Fix memory leak. PR: 27862 Submitted by: shengperson yahoo.com (chunyan sheng) Reviewed by: Joe Orton, Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@104864 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/CHANGES b/src/CHANGES index 8421cf5f9ac..702264d01dd 100644 --- a/src/CHANGES +++ b/src/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 1.3.32 + *) Fix memory leak in the cache handling of mod_rewrite. PR 27862. + [chunyan sheng , André Malo] + *) mod_rewrite no longer confuses the RewriteMap caches if different maps defined in different virtual hosts use the same map name. PR 26462. [André Malo] diff --git a/src/modules/standard/mod_rewrite.c b/src/modules/standard/mod_rewrite.c index 84779370e02..ccace1e873d 100644 --- a/src/modules/standard/mod_rewrite.c +++ b/src/modules/standard/mod_rewrite.c @@ -3939,7 +3939,7 @@ static char *get_cache_string(cache *c, char *res, int mode, return NULL; } } - return ap_pstrdup(c->pool, ce->value); + return ce->value; } static int cache_tlb_hash(char *key)