diff options
Diffstat (limited to 'src/libnftables.c')
-rw-r--r-- | src/libnftables.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libnftables.c b/src/libnftables.c index 5ef5532c..0d04ec21 100644 --- a/src/libnftables.c +++ b/src/libnftables.c @@ -174,18 +174,13 @@ struct nft_ctx *nft_ctx_new(uint32_t flags) return ctx; } -void nft_ctx_flush_cache(struct nft_ctx *ctx) -{ - iface_cache_release(); - cache_release(&ctx->cache); -} - void nft_ctx_free(struct nft_ctx *ctx) { if (ctx->nf_sock) netlink_close_sock(ctx->nf_sock); - nft_ctx_flush_cache(ctx); + iface_cache_release(); + cache_release(&ctx->cache); nft_ctx_clear_include_paths(ctx); xfree(ctx); nft_exit(); |