From: Phil Sutter Date: Thu, 13 Jul 2023 16:32:02 +0000 (+0200) Subject: iptables-restore: Drop dead code X-Git-Tag: v1.8.10~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d9453233538200e9663c6bd0c2df09e1671b5f4;p=thirdparty%2Fiptables.git iptables-restore: Drop dead code Handle initialization is guarded by 'in_table' boolean, so there can't be a handle already (because the branch which unsets 'in_table' also frees the handle). Signed-off-by: Phil Sutter --- diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index f11b2dc2..53029738 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -223,8 +223,6 @@ ip46tables_restore_main(const struct iptables_restore_cb *cb, } continue; } - if (handle) - cb->ops->free(handle); handle = create_handle(cb, table); if (noflush == 0) {