BUG/MINOR: arg: don't try to add an argument on failed memory allocation
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Apr 2017 20:28:52 +0000 (22:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Apr 2017 21:23:43 +0000 (23:23 +0200)
commita9e2e4b89922384755ac6a0fb4c24a1b159d43f2
treeaa1aab9d376fd73369e092523d02fd18f9d198a0
parent1822e8c35614fb01f25661ea541d9e0599b56a59
BUG/MINOR: arg: don't try to add an argument on failed memory allocation

Take care of arg_list_clone() returning NULL in arg_list_add() since
the former does it too. It's only used during parsing so the impact
is very low.

Can be backported to 1.7, 1.6 and 1.5.
src/arg.c