[master] 47be64f Plug an insignificant memleak.

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


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

    Plug an insignificant memleak.
    
    Spotted by: Coverity

diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index 3ac966b..8cb80fb 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -768,6 +768,7 @@ cmd_http_txresp(CMD_ARGS)
 	REPLACE(body, "");
 
 	av = http_tx_parse_args(av, vl, hp, body);
+	free(body);
 	if (*av != NULL)
 		vtc_log(hp->vl, 0, "Unknown http txresp spec: %s\n", *av);
 



More information about the varnish-commit mailing list