diff options
author | Graham Leggett <minfrin@apache.org> | 2006-09-26 16:56:01 +0200 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2006-09-26 16:56:01 +0200 |
commit | eed5062c084c0587839389a207026c70663f6b5a (patch) | |
tree | f11bbcb0f2097bc764569f1c69014c1d4e6eab51 /modules/cache | |
parent | mod_cache: From RFC3986 (section 6.2.3.) if a URI contains an (diff) | |
download | apache2-eed5062c084c0587839389a207026c70663f6b5a.tar.xz apache2-eed5062c084c0587839389a207026c70663f6b5a.zip |
Memory leak fix: Unconditionally free the buffer.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450070 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cache')
-rw-r--r-- | modules/cache/mod_mem_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cache/mod_mem_cache.c b/modules/cache/mod_mem_cache.c index 5842cc4164..63d8eb6663 100644 --- a/modules/cache/mod_mem_cache.c +++ b/modules/cache/mod_mem_cache.c @@ -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) { |