From: Phil Sutter Date: Thu, 2 Aug 2018 15:05:10 +0000 (+0200) Subject: xtables: Free chains in NFT_COMPAT_CHAIN_USER_DEL jobs X-Git-Tag: v1.8.1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2895eaf7a9d604c4aa10848ad46cdde48a00357;p=thirdparty%2Fiptables.git xtables: Free chains in NFT_COMPAT_CHAIN_USER_DEL jobs These always have to be freed because nft_chain_user_del() removes them from the cache so they are not freed when the chain cache is flushed. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- diff --git a/iptables/nft.c b/iptables/nft.c index f2d6ea13..26df1287 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -2447,8 +2447,8 @@ static void batch_obj_del(struct nft_handle *h, struct obj_update *o) break; case NFT_COMPAT_CHAIN_ADD: case NFT_COMPAT_CHAIN_USER_ADD: - case NFT_COMPAT_CHAIN_USER_DEL: break; + case NFT_COMPAT_CHAIN_USER_DEL: case NFT_COMPAT_CHAIN_USER_FLUSH: case NFT_COMPAT_CHAIN_UPDATE: case NFT_COMPAT_CHAIN_RENAME: