]> granicus.if.org Git - apache/commitdiff
Fix a storage leak introduced by my patch last night. Free the req_hdrs on cleanup.
authorBill Stoddard <stoddard@apache.org>
Wed, 5 Jun 2002 16:31:37 +0000 (16:31 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 5 Jun 2002 16:31:37 +0000 (16:31 +0000)
Submitted by: Jean-Jacques Clar

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95528 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_mem_cache.c

index 7fb19913e598c70c69526e9c27438c92aa6d1a5b..de9b655c84c79ffb03e1c0ff266cfdd6ed3a197a 100644 (file)
@@ -181,6 +181,11 @@ static void cleanup_cache_object(cache_object_t *obj)
                 free(mobj->notes[0].hdr);
             free(mobj->notes);
         }
+        if (mobj->req_hdrs) {
+            if (mobj->req_hdrs[0].hdr)
+                free(mobj->req_hdrs[0].hdr);
+            free(mobj->req_hdrs);
+        }
         free(mobj);
     }
     return;