about summary refs log tree commit diff
path: root/src/libwpactrl/wpactrl_xchg_cbres_free.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-08-10 20:51:40 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-08-10 20:51:40 +0000
commit5445a1d653cddb7b9321c87aec6b025c7627fe1d (patch)
tree1fad42bb0b4abbda9c35eb3ff829fb84bbcb8d78 /src/libwpactrl/wpactrl_xchg_cbres_free.c
parentbabf43abf301d072192bda1f72a47440c354b072 (diff)
downloadbcnm-5445a1d653cddb7b9321c87aec6b025c7627fe1d.tar.gz
bcnm-5445a1d653cddb7b9321c87aec6b025c7627fe1d.tar.xz
bcnm-5445a1d653cddb7b9321c87aec6b025c7627fe1d.zip
Complete first draft of libwpactrl, with documentation
Diffstat (limited to 'src/libwpactrl/wpactrl_xchg_cbres_free.c')
-rw-r--r--src/libwpactrl/wpactrl_xchg_cbres_free.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libwpactrl/wpactrl_xchg_cbres_free.c b/src/libwpactrl/wpactrl_xchg_cbres_free.c
new file mode 100644
index 0000000..b12a3fc
--- /dev/null
+++ b/src/libwpactrl/wpactrl_xchg_cbres_free.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+#include <skalibs/stralloc.h>
+#include <skalibs/genalloc.h>
+#include <bcnm/wpactrl.h>
+
+void wpactrl_xchg_cbres_free (wpactrl_xchg_cbres_t *cr)
+{
+  genalloc_free(int, &cr->parsed) ; /* relies on genericity of genalloc_free */
+  stralloc_free(&cr->storage) ;
+}