diff options
author | jeremy marchand <jeremy.marchand@etu.u-bordeaux.fr> | 2021-02-18 16:45:19 +0100 |
---|---|---|
committer | jeremy marchand <jeremy.marchand@etu.u-bordeaux.fr> | 2021-02-18 18:56:17 +0100 |
commit | c698e5a06dad15b5169d1e969f8db95324d5706f (patch) | |
tree | f754c027dec95903cc7e85a256867e10ec6e0cfa | |
parent | dda999f38c8714f9987f6aaebb0ef31aa5452a19 (diff) | |
download | slirp-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } /* |