Commit 107a53d3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Free the right header.


git-svn-id: http://www.varnish-cache.org/svn/trunk@321 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 951155ea
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment