From 71dc2810574a373dd1969088b7484933e40f6b46 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Mon, 17 Feb 2014 11:10:57 +0100 Subject: netlink: delete unused variable The table object that is allocated is unused. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/netlink.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/netlink.c b/src/netlink.c index 07af1cb8..28718889 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -676,7 +676,6 @@ int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h, 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) @@ -684,9 +683,7 @@ int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h, "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; } -- cgit v1.2.3