aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mbuf.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mbuf.c b/src/mbuf.c
index 54ec721..93c27b5 100644
--- a/src/mbuf.c
+++ b/src/mbuf.c
@@ -48,6 +48,18 @@ void m_cleanup(Slirp *slirp)
g_free(m);
m = next;
}
+ m = (struct mbuf *)slirp->if_batchq.qh_link;
+ while ((struct quehead *)m != &slirp->if_batchq) {
+ next = m->m_next;
+ g_free(m);
+ m = next;
+ }
+ m = (struct mbuf *)slirp->if_fastq.qh_link;
+ while ((struct quehead *)m != &slirp->if_fastq) {
+ next = m->m_next;
+ g_free(m);
+ m = next;
+ }
}
/*