From: phk Date: Wed, 5 Jul 2006 10:59:31 +0000 (+0000) Subject: Free the right header. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c0db7d16c0a76cf2a6721946534e7428b9c1683;p=varnish Free the right header. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@321 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 19707ccc..e2785cfb 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -110,6 +110,7 @@ HSH_Deref(struct object *o) if (o == NULL) return; + free(o->header); AZ(pthread_cond_destroy(&o->cv)); TAILQ_FOREACH_SAFE(st, &o->store, list, stn) { @@ -123,7 +124,6 @@ HSH_Deref(struct object *o) return; assert(TAILQ_EMPTY(&oh->objects)); AZ(pthread_mutex_destroy(&oh->mtx)); - free(oh->header); free(oh); }