summaryrefslogtreecommitdiffstats
path: root/src/cli.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-06-26 11:33:22 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-08-18 01:13:35 +0200
commitbd21392a7cdfefdd4a069707da31474da5fe9458 (patch)
tree7420311471ac381318b7d36ef014d69af71258fe /src/cli.c
parent94002b41384890224bfb14d1b0986bd8b279b17e (diff)
src: add cache infrastructure and use it for table objects
This patch introduces the generic object cache that is populated during the evaluation phase. The first client of this infrastructure are table objects. As a result, there is a single call to netlink_list_tables(). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index fbae0ef3..adffd6b9 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -124,6 +124,7 @@ static void cli_complete(char *line)
nft_run(scanner, state, &msgs);
erec_print_list(stdout, &msgs);
xfree(line);
+ cache_release();
iface_cache_release();
}