From: des Date: Mon, 25 Jun 2007 16:25:29 +0000 (+0000) Subject: Use FREE_OBJ() instead of just free() when freeing miniobjs. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bacbb9f96f6eecdd349e0e67e585d316647fc098;p=varnish Use FREE_OBJ() instead of just free() when freeing miniobjs. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1569 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index a48fb1ba..080989b2 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -258,7 +258,7 @@ HSH_Deref(struct object *o) free(o->vary); HSH_Freestore(o); - free(o); + FREE_OBJ(o); VSL_stats->n_object--; if (oh == NULL) @@ -269,7 +269,7 @@ HSH_Deref(struct object *o) assert(TAILQ_EMPTY(&oh->objects)); MTX_DESTROY(&oh->mtx); VSL_stats->n_objecthead--; - free(oh); + FREE_OBJ(oh); } void