]> err.no Git - varnish/commitdiff
Use FREE_OBJ() instead of just free() when freeing miniobjs.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Jun 2007 16:25:29 +0000 (16:25 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Jun 2007 16:25:29 +0000 (16:25 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1569 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_hash.c

index a48fb1ba35f712e286427b7303bc1f60724f7382..080989b29e700be3e57f628abfcf36e4a1e34022 100644 (file)
@@ -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