MINOR: cfgparse: tighten the scope of newnameserver variable, free it on error.
authorEric Salama <esalama@haproxy.com>
Fri, 13 Nov 2020 14:56:36 +0000 (15:56 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Nov 2020 15:36:23 +0000 (16:36 +0100)
commit6057016df764c7e7f218dcdd39d024ef65cd1d43
tree5098e2b9590df8605273daed6d35fd3979ac45b8
parentd713bfb9de0195d27545cdfa8f959fe8eec12a4c
MINOR: cfgparse: tighten the scope of newnameserver variable, free it on error.

This should fix issue GH #931.

Also remove a misleading comment.

This commit can be backported as far as 1.9

(cherry picked from commit 9139ec34ed7aae4fe63926ca5c87a5b32b376488)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/cfgparse.c