[master] 10dafbc Plug harmless leak
Federico G. Schwindt
fgsch at lodoss.net
Sat May 13 15:01:06 CEST 2017
commit 10dafbc6c2154128eb426419cb39c4f73e7d4014
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Sat May 13 13:43:16 2017 +0100
Plug harmless leak
Spotted by coverity.
diff --git a/lib/libvarnishapi/vsm.c b/lib/libvarnishapi/vsm.c
index 18c7b6c..da5f90f 100644
--- a/lib/libvarnishapi/vsm.c
+++ b/lib/libvarnishapi/vsm.c
@@ -152,7 +152,10 @@ VSM_n_Arg(struct VSM_data *vd, const char *arg)
REPLACE(vd->name, name);
REPLACE(vd->dname, dname);
REPLACE(vd->iname, VSB_data(vsb));
+
VSB_destroy(&vsb);
+ free(name);
+ free(dname);
return (1);
}
More information about the varnish-commit
mailing list