summaryrefslogtreecommitdiffstats
path: root/src/udata.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udata.c')
-rw-r--r--src/udata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udata.c b/src/udata.c
index 03aac63..60c2f34 100644
--- a/src/udata.c
+++ b/src/udata.c
@@ -30,9 +30,9 @@ struct nftnl_udata_buf *nftnl_udata_buf_alloc(uint32_t data_size)
}
EXPORT_SYMBOL(nftnl_udata_buf_alloc);
-void nftnl_udata_buf_free(struct nftnl_udata_buf *buf)
+void nftnl_udata_buf_free(const struct nftnl_udata_buf *buf)
{
- free(buf);
+ xfree(buf);
}
EXPORT_SYMBOL(nftnl_udata_buf_free);