From: phk Date: Mon, 31 Mar 2008 11:49:20 +0000 (+0000) Subject: Fix a memoryleak relating to hash strings, found by: Arjan (noosius). X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c58922acf67d196584c5fcf4002cc8f6206f5f56;p=varnish Fix a memoryleak relating to hash strings, found by: Arjan (noosius). git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2614 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index a948cbd0..d0bd0952 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -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); }