Commit 9ce6564f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Polish: use mini_obj.h



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2876 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 97b5b6f2
...@@ -73,7 +73,8 @@ vdi_simple_fini(struct director *d) ...@@ -73,7 +73,8 @@ vdi_simple_fini(struct director *d)
CAST_OBJ_NOTNULL(vs, d->priv, VDI_SIMPLE_MAGIC); CAST_OBJ_NOTNULL(vs, d->priv, VDI_SIMPLE_MAGIC);
VBE_DropRef(vs->backend); VBE_DropRef(vs->backend);
free(vs); vs->dir.magic = 0;
FREE_OBJ(vs);
} }
void void
...@@ -83,9 +84,8 @@ VRT_init_dir_simple(struct cli *cli, struct director **bp, const struct vrt_dir_ ...@@ -83,9 +84,8 @@ VRT_init_dir_simple(struct cli *cli, struct director **bp, const struct vrt_dir_
(void)cli; (void)cli;
vs = calloc(sizeof *vs, 1); ALLOC_OBJ(vs, VDI_SIMPLE_MAGIC);
XXXAN(vs); XXXAN(vs);
vs->magic = VDI_SIMPLE_MAGIC;
vs->dir.magic = DIRECTOR_MAGIC; vs->dir.magic = DIRECTOR_MAGIC;
vs->dir.priv = vs; vs->dir.priv = vs;
vs->dir.name = "simple"; vs->dir.name = "simple";
......
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