Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Also, if we're going to bail, we should free the mem...
details: https://anonhg.NetBSD.org/src/rev/7f359c4ed684
branches: trunk
changeset: 554477:7f359c4ed684
user: mycroft <mycroft%NetBSD.org@localhost>
date: Tue Oct 28 20:16:28 2003 +0000
description:
Also, if we're going to bail, we should free the memory we just allocated...
diffstat:
sys/net/if_ppp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 8feecc0b48e2 -r 7f359c4ed684 sys/net/if_ppp.c
--- a/sys/net/if_ppp.c Tue Oct 28 20:15:19 2003 +0000
+++ b/sys/net/if_ppp.c Tue Oct 28 20:16:28 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ppp.c,v 1.87 2003/10/28 20:15:19 mycroft Exp $ */
+/* $NetBSD: if_ppp.c,v 1.88 2003/10/28 20:16:28 mycroft Exp $ */
/* Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp */
/*
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.87 2003/10/28 20:15:19 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.88 2003/10/28 20:16:28 mycroft Exp $");
#include "ppp.h"
@@ -633,6 +633,7 @@
bp = &sc->sc_active_filt_out;
break;
default:
+ free(newcode, M_DEVBUF);
return (EPASSTHROUGH);
}
oldcode = bp->bf_insns;
Home |
Main Index |
Thread Index |
Old Index