The table object that is allocated is unused.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
const struct location *loc)
{
struct nft_table_list *table_cache;
- struct nft_table *nlt;
table_cache = mnl_nft_table_dump(nf_sock, h->family);
if (table_cache == NULL)
"Could not receive tables from kernel: %s",
strerror(errno));
- nlt = alloc_nft_table(h);
nft_table_list_foreach(table_cache, list_table_cb, ctx);
- nft_table_free(nlt);
nft_table_list_free(table_cache);
return 0;
}