]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix memory leak.
authorAndré Malo <nd@apache.org>
Fri, 27 Aug 2004 19:29:57 +0000 (19:29 +0000)
committerAndré Malo <nd@apache.org>
Fri, 27 Aug 2004 19:29:57 +0000 (19:29 +0000)
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

src/CHANGES
src/modules/standard/mod_rewrite.c

index 8421cf5f9ac2b5ea05639d06ca4f1bf80fdd4a46..702264d01dde095d0bc1d8e168cbabc245ca0535 100644 (file)
@@ -1,5 +1,8 @@
 Changes with Apache 1.3.32
 
+  *) Fix memory leak in the cache handling of mod_rewrite. PR 27862.
+     [chunyan sheng <shengperson yahoo.com>, 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]
index 84779370e0293be21c54e31bf9178f552454cd20..ccace1e873d7958e6783ea4669c313f717e5752b 100644 (file)
@@ -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)