diff options
author | brian <brian@FreeBSD.org> | 1999-05-28 08:03:24 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-05-28 08:03:24 +0000 |
commit | 0e927447e35265ab29fea7db0f0f455451b0a7b2 (patch) | |
tree | b70d3eda1e72e7f5732c1fde3eb8a90c04b89d83 /usr.sbin | |
parent | 03b6a6f1747185b2355ac8494c313206231e2683 (diff) | |
download | FreeBSD-src-0e927447e35265ab29fea7db0f0f455451b0a7b2.zip FreeBSD-src-0e927447e35265ab29fea7db0f0f455451b0a7b2.tar.gz |
Don't forget to free the mbufs that get processed by
mp_Assemble().
Leak spotted by: louqi
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/mp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/mp.c b/usr.sbin/ppp/mp.c index 993d6bf..2f206de 100644 --- a/usr.sbin/ppp/mp.c +++ b/usr.sbin/ppp/mp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp.c,v 1.19 1999/05/08 11:07:17 brian Exp $ + * $Id: mp.c,v 1.20 1999/05/12 09:48:55 brian Exp $ */ #include <sys/param.h> @@ -494,6 +494,7 @@ mp_Assemble(struct mp *mp, struct mbuf *m, struct physical *p) log_Printf(LogDEBUG, "MP: Reassembled frags %ld-%lu, length %d\n", first, (u_long)h.seq, mbuf_Length(q)); link_PullPacket(&mp->link, MBUF_CTOP(q), q->cnt, mp->bundle); + mbuf_Free(q); } mp->seq.next_in = seq = inc_seq(mp->local_is12bit, h.seq); |