[master] bd51f43 Plug a leak of the read end of VSUB pipes
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri May 25 11:30:34 UTC 2018
commit bd51f43cd13738f384273ccfc20d15372087e12e
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Fri May 25 13:28:04 2018 +0200
Plug a leak of the read end of VSUB pipes
diff --git a/lib/libvarnish/vsub.c b/lib/libvarnish/vsub.c
index 2792ebc..cafbe40 100644
--- a/lib/libvarnish/vsub.c
+++ b/lib/libvarnish/vsub.c
@@ -127,6 +127,7 @@ VSUB_run(struct vsb *sb, vsub_func_f *func, void *priv, const char *name,
}
closefd(&p[1]);
(void)VLU_File(p[0], vsub_vlu, &sp, 0);
+ closefd(&p[0]);
if (sp.maxlines >= 0 && sp.lines > sp.maxlines)
VSB_printf(sb, "[%d lines truncated]\n",
sp.lines - sp.maxlines);
More information about the varnish-commit
mailing list