]> err.no Git - varnish/commitdiff
Fix a memoryleak relating to hash strings, found by: Arjan (noosius).
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 31 Mar 2008 11:49:20 +0000 (11:49 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 31 Mar 2008 11:49:20 +0000 (11:49 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2614 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_hash.c

index a948cbd011474215186737c1c7717566bce92a24..d0bd09522dc6858c089c5a40595c576a9d3b2301 100644 (file)
@@ -383,6 +383,7 @@ HSH_Deref(struct object *o)
        assert(VTAILQ_EMPTY(&oh->objects));
        MTX_DESTROY(&oh->mtx);
        VSL_stats->n_objecthead--;
+       free(oh->hash);
        FREE_OBJ(oh);
 }