diff options
author | Álvaro Neira Ayuso <alvaroneay@gmail.com> | 2013-09-12 19:16:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-09-13 09:40:11 +0200 |
commit | 04db2744603bd506470b4e1baf9deee16d43baca (patch) | |
tree | 879882f3bc668318187b06a52f35fe304c69df41 | |
parent | 29a89694181f8eaa8b9dcd8c95224ced6199ad94 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |