[master] 0d6361433 make more obvious what happens during director destruction

Nils Goroll nils.goroll at uplex.de
Wed Nov 13 15:53:05 UTC 2019


commit 0d636143386645a34547f6faa52bb6177d66d4b1
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Nov 13 16:29:38 2019 +0100

    make more obvious what happens during director destruction

diff --git a/bin/varnishd/cache/cache_vrt_vcl.c b/bin/varnishd/cache/cache_vrt_vcl.c
index 66f0ce9e5..a660c23e2 100644
--- a/bin/varnishd/cache/cache_vrt_vcl.c
+++ b/bin/varnishd/cache/cache_vrt_vcl.c
@@ -225,6 +225,7 @@ VRT_DelDirector(VCL_BACKEND *bp)
 	AZ(errno=pthread_rwlock_unlock(&vcl->temp_rwl));
 	if(vdir->methods->destroy != NULL)
 		vdir->methods->destroy(d);
+	assert (d == vdir->dir);
 	free(vdir->cli_name);
 	FREE_OBJ(vdir->dir);
 	FREE_OBJ(vdir);


More information about the varnish-commit mailing list