aboutsummaryrefslogtreecommitdiff
path: root/src/lib/q.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/q.c')
-rw-r--r--src/lib/q.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/q.c b/src/lib/q.c
index e40fee8..494c712 100644
--- a/src/lib/q.c
+++ b/src/lib/q.c
@@ -27,6 +27,7 @@ void popq(struct Q_base* qb)
if (qb->next == 0)
return;
if (qb->next == qb->last) {
+ free(qb->next->data);
free(qb->next);
qb->next = 0;
qb->last = 0;
@@ -34,5 +35,6 @@ void popq(struct Q_base* qb)
}
struct Q* t = qb->next;
qb->next = qb->next->next;
+ free(t->data);
free(t);
}