[master] b2a6c79 Fix tiny memory leak in vdir.c

Dag Haavi Finstad daghf at varnish-software.com
Mon May 5 13:34:27 CEST 2014


commit b2a6c79f751e0899fff96c80e30ecb0bd9b164e8
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date:   Mon May 5 13:34:09 2014 +0200

    Fix tiny memory leak in vdir.c

diff --git a/lib/libvmod_directors/vdir.c b/lib/libvmod_directors/vdir.c
index c8a8c84..12268eb 100644
--- a/lib/libvmod_directors/vdir.c
+++ b/lib/libvmod_directors/vdir.c
@@ -88,6 +88,7 @@ vdir_delete(struct vdir **vdp)
 	free(vd->backend);
 	free(vd->weight);
 	AZ(pthread_mutex_destroy(&vd->mtx));
+	free(vd->dir->vcl_name);
 	FREE_OBJ(vd->dir);
 	vbit_destroy(vd->vbm);
 	FREE_OBJ(vd);



More information about the varnish-commit mailing list