[master] 44f47f0 Avoid double-free of DNS directors

Tollef Fog Heen tfheen at varnish-cache.org
Thu Feb 24 09:24:14 CET 2011


commit 44f47f0f732ce55a6a705a6d5e4bba4cb6a4cdde
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Thu Feb 24 09:23:26 2011 +0100

    Avoid double-free of DNS directors
    
    The director is freed in vcc_backend.c already, so don't free it in
    vcc_dir_dns.c too.
    
    Fixes: #863

diff --git a/lib/libvcl/vcc_dir_dns.c b/lib/libvcl/vcc_dir_dns.c
index 3bd9d32..d5a4c34 100644
--- a/lib/libvcl/vcc_dir_dns.c
+++ b/lib/libvcl/vcc_dir_dns.c
@@ -368,5 +368,4 @@ vcc_ParseDnsDirector(struct vcc *tl)
 	Fc(tl, 0, "\t.ttl = %f", ttl);
 	Fc(tl, 0, ",\n");
 	Fc(tl, 0, "};\n");
-	Ff(tl, 0, "\tVRT_fini_dir(cli, VGCDIR(_%.*s));\n", PF(tl->t_dir));
 }



More information about the varnish-commit mailing list