summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_xchg_free.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwpactrl/wpactrl_xchg_free.c')
-rw-r--r--src/libwpactrl/wpactrl_xchg_free.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libwpactrl/wpactrl_xchg_free.c b/src/libwpactrl/wpactrl_xchg_free.c
new file mode 100644
index 0000000..e244a52
--- /dev/null
+++ b/src/libwpactrl/wpactrl_xchg_free.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/stralloc.h>
+#include <bcnm/wpactrl.h>
+
+void wpactrl_xchg_free (wpactrl_xchg_t *dt)
+{
+ stralloc_free(&dt->sa) ;
+ *dt = wpactrl_xchg_zero ;
+}