httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject svn commit: r330380 - /httpd/httpd/trunk/modules/cache/mod_mem_cache.c
Date Wed, 02 Nov 2005 22:43:43 GMT
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 <christophe.jaillet@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;
     }



Mime
View raw message