From c58922acf67d196584c5fcf4002cc8f6206f5f56 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 31 Mar 2008 11:49:20 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_hash.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.5