]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: Fix for memleak when commands fail
authorPhil Sutter <phil@nwl.cc>
Thu, 24 Aug 2017 17:14:13 +0000 (19:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 24 Aug 2017 17:20:29 +0000 (19:20 +0200)
commitd4344bd829c00523b80f09bebf2a70c588b64c2a
tree72cb7bef48f869120e7ea32f095811cd17d4eb41
parentc7beb7a633315d540bddd127948803a3b555d286
parser: Fix for memleak when commands fail

In case of failing command evaluation, commands need to be freed as
their memory becomes orphaned afterwards.

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/parser_bison.y