From 487e4d784dbd74a3122d443bf7f6114ba01d88e4 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 21 Aug 2008 08:14:40 +0000 Subject: [PATCH] Polish git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3117 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_backend_cfg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_backend_cfg.c b/varnish-cache/bin/varnishd/cache_backend_cfg.c index 8d05076a..ec787ae1 100644 --- a/varnish-cache/bin/varnishd/cache_backend_cfg.c +++ b/varnish-cache/bin/varnishd/cache_backend_cfg.c @@ -76,13 +76,14 @@ VBE_SelectBackend(struct sess *sp) static void VBE_Nuke(struct backend *b) { + + ASSERT_CLI(); VTAILQ_REMOVE(&backends, b, list); free(b->ident); free(b->hosthdr); free(b->ipv4); free(b->ipv6); - b->magic = 0; - free(b); + FREE_OBJ(b); VSL_stats->n_backend--; } -- 2.39.5