aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeremy marchand <jeremy.marchand@etu.u-bordeaux.fr>2021-02-18 16:45:19 +0100
committerjeremy marchand <jeremy.marchand@etu.u-bordeaux.fr>2021-02-18 18:56:17 +0100
commitc698e5a06dad15b5169d1e969f8db95324d5706f (patch)
treef754c027dec95903cc7e85a256867e10ec6e0cfa
parentdda999f38c8714f9987f6aaebb0ef31aa5452a19 (diff)
downloadslirp-c698e5a06dad15b5169d1e969f8db95324d5706f.zip
slirp-c698e5a06dad15b5169d1e969f8db95324d5706f.tar.gz
slirp-c698e5a06dad15b5169d1e969f8db95324d5706f.tar.bz2
m_cleanup: fix memory leaks
m_cleanup didn't cleanup the if_batchq and if_fastq queues, resulting in a memory leak.
-rw-r--r--src/mbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbuf.c b/src/mbuf.c
index c262f43..32d3210 100644
--- a/src/mbuf.c
+++ b/src/mbuf.c
@@ -48,6 +48,8 @@ void m_cleanup(Slirp *slirp)
{
m_cleanup_list(&slirp->m_usedlist);
m_cleanup_list(&slirp->m_freelist);
+ m_cleanup_list(&slirp->if_batchq);
+ m_cleanup_list(&slirp->if_fastq);
}
/*