]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables: Fix for memleak with change counters command
authorPhil Sutter <phil@nwl.cc>
Wed, 31 Jan 2024 21:45:07 +0000 (22:45 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 1 Feb 2024 13:51:30 +0000 (14:51 +0100)
commit11c77ed471f2d8a6dc60c17aef1e1a3b52ff3591
tree174a4ed24c3ab4fe6d74af358c0344442a86acce
parentd109e41344b8f54741c0862a44d544a713178dd3
ebtables: Fix for memleak with change counters command

Just like with check command, change counters command creates a
temporary rule from rulespec on command line for a search by spec in
rule cache. It is not used anymore afterwards, so nft_cmd_free() should
free it.

Fixes: f340b7b6816be ("ebtables: Implement --change-counters command")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-cmd.c