]> err.no Git - varnish/commitdiff
Free the right header.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Jul 2006 10:59:31 +0000 (10:59 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Jul 2006 10:59:31 +0000 (10:59 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@321 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_hash.c

index 19707ccc8ba7d211b151b9c380e4e1346f2a2850..e2785cfb7554fa0446c0cb9818a0503076c80798 100644 (file)
@@ -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);
 }