[master] e9cb722 Fix insignificant mem-leak

Poul-Henning Kamp phk at varnish-cache.org
Tue Oct 1 16:48:11 CEST 2013


commit e9cb722615106e762ab9661f1494d7a39ee4bf57
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Oct 1 14:47:54 2013 +0000

    Fix insignificant mem-leak
    
    Spotted by: Coverity

diff --git a/bin/varnishtest/vtc.c b/bin/varnishtest/vtc.c
index bea1298..0aa4769 100644
--- a/bin/varnishtest/vtc.c
+++ b/bin/varnishtest/vtc.c
@@ -201,6 +201,7 @@ macro_expand(struct vtclog *vl, const char *text)
 			return (NULL);
 		}
 		VSB_printf(vsb, "%s", m);
+		free(m);
 		text = q + 1;
 	}
 	AZ(VSB_finish(vsb));



More information about the varnish-commit mailing list