]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Memory leak fix: Unconditionally free the buffer.
authorGraham Leggett <minfrin@apache.org>
Tue, 26 Sep 2006 14:56:01 +0000 (14:56 +0000)
committerGraham Leggett <minfrin@apache.org>
Tue, 26 Sep 2006 14:56:01 +0000 (14:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450070 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/cache/mod_mem_cache.c

diff --git a/CHANGES b/CHANGES
index 3ebe4063422dbea680b58779c0936b018a9a0aa1..5db1cb00e9fa09c8c4d165eead6436ecdf8eace9 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 Changes with Apache 2.3.0
   [Remove entries to the current 2.0 and 2.2 section below, when backported]
 
+  *) mod_mem_cache: Memory leak fix: Unconditionally free the buffer.
+     [Davi Arnaut <davi haxent.com.br>]
+
   *) mod_cache: From RFC3986 (section 6.2.3.) if a URI contains an
      authority component and an empty path, the empty path is to be equivalent
      to "/". It explicitly cites the following four URIs as equivalents:
index 5842cc416496cf8003cd4425dd5fe519ca730ec5..63d8eb666385086cf04ea615b51375dfe303af12 100644 (file)
@@ -225,7 +225,7 @@ static void cleanup_cache_object(cache_object_t *obj)
 
     /* Cleanup the mem_cache_object_t */
     if (mobj) {
-        if (mobj->type == CACHE_TYPE_HEAP && mobj->m) {
+        if (mobj->m) {
             free(mobj->m);
         }
         if (mobj->type == CACHE_TYPE_FILE && mobj->fd) {