Commit bd51f43c authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Plug a leak of the read end of VSUB pipes

parent 0ed0f2fa
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment