set_elem: use proper free function
PATCH 1/1 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 <[email protected]>
--- src/set_elem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/set_elem.c +1 -1
@@ -290,7 +290,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 ; }