aboutsummaryrefslogtreecommitdiff
path: root/slirp/if.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-09-13 21:42:51 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-09-13 21:42:51 +0000
commitc9a621176e479b8106056ed992fddf34d9d0d206 (patch)
tree650fe5a3197bb006041e8a9ec9cae6011549a905 /slirp/if.c
parentcf720db33a6b46869a9c7c12d237a08d881e8bfb (diff)
memory leak fix (Juergen Keil)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1067 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/if.c')
-rw-r--r--slirp/if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/slirp/if.c b/slirp/if.c
index 282b674c5e..9317cbfe9c 100644
--- a/slirp/if.c
+++ b/slirp/if.c
@@ -315,6 +315,8 @@ if_start(void)
/* Encapsulate the packet for sending */
if_encap(ifm->m_data, ifm->m_len);
+ m_free(ifm);
+
if (if_queued)
goto again;
}