You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@apache.org on 2005/11/02 23:43:43 UTC

svn commit: r330380 - /httpd/httpd/trunk/modules/cache/mod_mem_cache.c

Author: stoddard
Date: Wed Nov  2 14:42:45 2005
New Revision: 330380

URL: http://svn.apache.org/viewcvs?rev=330380&view=rev
Log:
fix memory leak. Reported by <ch...@wanadoo.fr>

Modified:
    httpd/httpd/trunk/modules/cache/mod_mem_cache.c

Modified: httpd/httpd/trunk/modules/cache/mod_mem_cache.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/cache/mod_mem_cache.c?rev=330380&r1=330379&r2=330380&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_mem_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_mem_cache.c Wed Nov  2 14:42:45 2005
@@ -568,6 +568,7 @@
     /* Transfer the headers into a contiguous memory block */
     buf = malloc(len);
     if (!buf) {
+        free(*obj);
         *obj = NULL;
         return APR_ENOMEM;
     }