summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÁlvaro Neira Ayuso <alvaroneay@gmail.com>2013-09-12 19:16:28 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-09-13 09:40:11 +0200
commit04db2744603bd506470b4e1baf9deee16d43baca (patch)
tree879882f3bc668318187b06a52f35fe304c69df41
parent29a89694181f8eaa8b9dcd8c95224ced6199ad94 (diff)
rule: use helper function nft_jansson_free_root
Signed-off-by: Álvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/rule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rule.c b/src/rule.c
index 2344dd6..a85005f 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -557,10 +557,10 @@ static int nft_rule_json_parse(struct nft_rule *r, const char *json)
nft_rule_add_expr(r, e);
}
- json_decref(node);
+ nft_jansson_free_root(node);
return 0;
err:
- json_decref(node);
+ nft_jansson_free_root(node);
return -1;
#else
errno = EOPNOTSUPP;