summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1999-05-28 08:03:54 +0000
committerbrian <brian@cvs.openbsd.org>1999-05-28 08:03:54 +0000
commit35ade769fedba0983199cb421d59fbaa5933252c (patch)
tree257b40eb0b9663a4e22a765659c89835bad63189
parentd04eb496560417ff2868794e46b005a44e31c555 (diff)
Don't forget to free the mbufs that get processed by
mp_Assemble(). Leak spotted by: louqi
-rw-r--r--usr.sbin/ppp/ppp/mp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ppp/mp.c b/usr.sbin/ppp/ppp/mp.c
index cb59a1eaf7b..67168616821 100644
--- a/usr.sbin/ppp/ppp/mp.c
+++ b/usr.sbin/ppp/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.6 1999/05/12 10:03:52 brian Exp $
+ * $Id: mp.c,v 1.7 1999/05/28 08:03:53 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);