summaryrefslogtreecommitdiff
path: root/src/libdatastruct/genqdyn_free.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libdatastruct/genqdyn_free.c')
-rw-r--r--src/libdatastruct/genqdyn_free.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libdatastruct/genqdyn_free.c b/src/libdatastruct/genqdyn_free.c
new file mode 100644
index 0000000..d2dd007
--- /dev/null
+++ b/src/libdatastruct/genqdyn_free.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/stralloc.h>
+#include <skalibs/genqdyn.h>
+
+void genqdyn_free (genqdyn *g)
+{
+ stralloc_free(&g->queue) ;
+ *g = genqdyn_zero ;
+}