[master] 6498384 Fix memory leak on ESI

Martin Blix Grydeland martin at varnish-software.com
Fri Jun 27 15:13:14 CEST 2014


commit 6498384f1b410f63c914c4e6ab2168e6b4ab5288
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Fri Jun 27 15:08:32 2014 +0200

    Fix memory leak on ESI

diff --git a/bin/varnishd/cache/cache_esi_fetch.c b/bin/varnishd/cache/cache_esi_fetch.c
index 3eb4c49..41bea3b 100644
--- a/bin/varnishd/cache/cache_esi_fetch.c
+++ b/bin/varnishd/cache/cache_esi_fetch.c
@@ -136,6 +136,7 @@ vfp_esi_end(struct busyobj *bo, struct vef_priv *vef, enum vfp_status retval)
 			    "ESI+Gzip Failed at the very end");
 	}
 	if (vef->ibuf != NULL)
+		free(vef->ibuf);
 	FREE_OBJ(vef);
 	return (retval);
 }



More information about the varnish-commit mailing list