diff options
author | Phil Sutter <phil@nwl.cc> | 2020-06-16 13:06:26 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-06-16 16:30:16 +0200 |
commit | 63fa2b1cb98be66990912d7eb42eab5440437087 (patch) | |
tree | 89fad9819317998c8b68fd20840508f50b34f207 /iptables | |
parent | 2757c0b5e5fbbf569695469b331453cecefdf069 (diff) |
xtables-translate: Use proper clear_cs function
Avoid memleaks by performing a full free of any allocated data in local
iptables_command_state variable.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/xtables-translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c index 363c8be1..575fb320 100644 --- a/iptables/xtables-translate.c +++ b/iptables/xtables-translate.c @@ -319,7 +319,7 @@ static int do_command_xlate(struct nft_handle *h, int argc, char *argv[], exit(1); } - xtables_rule_matches_free(&cs.matches); + nft_clear_iptables_command_state(&cs); if (h->family == AF_INET) { free(args.s.addr.v4); |