summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-07-04 14:38:37 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-07-05 00:42:56 +0200
commit7374d172f37f2f793ef506765518ea744b753c21 (patch)
tree52d4ccdfdf46e51a1b3cfd90768013e3bdb012a6 /src/main.c
parente33b8a01fc122a3dbc281629c1d3691d05f5d844 (diff)
src: use malloc() and free() from cli and main
xmalloc() and xfree() are internal symbols of the library, do not use them. Fixes: 16543a0136c0 ("libnftables: export public symbols only") Reported-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 8e6c897c..69461122 100644
--- a/src/main.c
+++ b/src/main.c
@@ -329,7 +329,7 @@ int main(int argc, char * const *argv)
exit(EXIT_FAILURE);
}
- xfree(buf);
+ free(buf);
nft_ctx_free(nft);
return rc;