summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2014-07-03 18:04:21 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-08-18 14:34:40 +0200
commit3a5d8b38f288c2f59a4045983e0734498b932770 (patch)
tree043a99362f086783d2c5087fc9796fa39256b0ab
parentb6ec4f7f68978ab6181e0a0e9d0a4bc7fa9b98e7 (diff)
set_elem: use proper free function
Let's use the proper free function to liberate the set_elem, so we avoid potential memory leaks. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/set_elem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/set_elem.c b/src/set_elem.c
index 93ecac6..95f12bf 100644
--- a/src/set_elem.c
+++ b/src/set_elem.c
@@ -300,7 +300,7 @@ static int nft_set_elems_parse2(struct nft_set *s, const struct nlattr *nest)
}
}
if (ret < 0) {
- xfree(e);
+ nft_set_elem_free(e);
return -1;
}