diff options
author | Florian Westphal <fw@strlen.de> | 2023-12-13 11:18:06 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-12-13 12:08:19 +0100 |
commit | d755c2a3ae7fe8272321a1d81eafbd90052c4f14 (patch) | |
tree | ea99407f68db393a0b8f59f0c09de6f87e6629d4 /tests | |
parent | 28b3bbec5a97aaa57f7138fee8b2f22ff0e5b960 (diff) |
parser_bison: fix memory leaks on hookspec error processing
prio_spec may contain an embedded expression, release it.
We also need to release the device expr and the hook string.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/shell/testcases/bogons/nft-f/memleak_on_hookspec_error | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/nft-f/memleak_on_hookspec_error b/tests/shell/testcases/bogons/nft-f/memleak_on_hookspec_error new file mode 100644 index 00000000..6f52658f --- /dev/null +++ b/tests/shell/testcases/bogons/nft-f/memleak_on_hookspec_error @@ -0,0 +1,21 @@ +table ip filter { + ct expectation ctexpect { + protocol tcp + size 12 + l3proto ip + } . inet_proto : mark + flags interval,timeout + } + + chain output { + type gilter hook output priori + + chain c { + cttable inet filter { + map test { + type mark . inet_service . inet_proto : mark + flags interval,timeout + } + + chain output { + type gilter hook output priority filuer; policy
\ No newline at end of file |