From d27456460a2867d69a6bbed8aa0019f65ab42eac Mon Sep 17 00:00:00 2001 From: Alvaro Neira Date: Thu, 12 Mar 2015 17:33:09 +0100 Subject: ruleset: add nft_ruleset_ctx_free This function releases the ruleset objects attached in the parse context structure, ie. struct nft_parse_ctx. Moreover, this patch updates the nft_parse_ruleset_file to use it. Signed-off-by: Alvaro Neira Ayuso Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/ruleset.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libnftnl/ruleset.h') diff --git a/include/libnftnl/ruleset.h b/include/libnftnl/ruleset.h index aa1d92d..fe5e44f 100644 --- a/include/libnftnl/ruleset.h +++ b/include/libnftnl/ruleset.h @@ -51,6 +51,7 @@ enum { }; struct nft_parse_ctx; +void nft_ruleset_ctx_free(const struct nft_parse_ctx *ctx); bool nft_ruleset_ctx_is_set(const struct nft_parse_ctx *ctx, uint16_t attr); void *nft_ruleset_ctx_get(const struct nft_parse_ctx *ctx, uint16_t attr); uint32_t nft_ruleset_ctx_get_u32(const struct nft_parse_ctx *ctx, -- cgit v1.2.3