BUG/MINOR: mworker: fix a memleak when execvp() failed
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 8 Jun 2020 08:01:13 +0000 (10:01 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 8 Jun 2020 08:19:33 +0000 (10:19 +0200)
commit4f37a3df7cb06811d21b785b4499d2a5ae16d93b
tree0bce2be34ccb1971159f0529dfb8bc351d28efe1
parent436f0e5a5c9365917bd9d68c1fade83dd30825c1
BUG/MINOR: mworker: fix a memleak when execvp() failed

Free next_argv when execvp() failed.

Must be backported as far as 1.8.

Should fix issue #668.

(cherry picked from commit 9fc6c97fb30bb9c15d6b6e34c917b0b5aba7486a)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
src/haproxy.c