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:26:10 +0000 (16:26 +0100)
commit9139ec34ed7aae4fe63926ca5c87a5b32b376488
tree8928505820b2c7c2d167994c0246808d34bdafa2
parentfc633b6effb750d112fe85f898bdac2aec7c0512
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
src/cfgparse.c