]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_bison: make sure obj_free releases timeout policies
authorFlorian Westphal <fw@strlen.de>
Tue, 12 Dec 2023 09:44:35 +0000 (10:44 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 12 Dec 2023 15:33:18 +0000 (16:33 +0100)
commitd5a06af393eaf47571c884a265d1f6e6ba34ed97
tree23fac2b8ce25d2f964d270c9ce8d3552fd7e40fb
parentd07c874797295f425541464ac84864e591fc0614
parser_bison: make sure obj_free releases timeout policies

obj_free() won't release them because ->type is still 0 at this
point.

Init this to CT_TIMEOUT.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/parser_bison.y
tests/shell/testcases/bogons/nft-f/ct_timeout_memleak_objfree [new file with mode: 0644]