Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Plug a memory leak.
details: https://anonhg.NetBSD.org/src/rev/04dd54950c68
branches: trunk
changeset: 502117:04dd54950c68
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jan 11 22:43:02 2001 +0000
description:
Plug a memory leak.
diffstat:
sys/net/if_sl.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r d051fc87f07f -r 04dd54950c68 sys/net/if_sl.c
--- a/sys/net/if_sl.c Thu Jan 11 22:32:21 2001 +0000
+++ b/sys/net/if_sl.c Thu Jan 11 22:43:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sl.c,v 1.67 2001/01/11 21:15:58 thorpej Exp $ */
+/* $NetBSD: if_sl.c,v 1.68 2001/01/11 22:43:02 thorpej Exp $ */
/*
* Copyright (c) 1987, 1989, 1992, 1993
@@ -503,6 +503,7 @@
}
MCLGET(sc->sc_mbuf, M_DONTWAIT);
if ((sc->sc_mbuf->m_flags & M_EXT) == 0) {
+ m_freem(sc->sc_mbuf);
sc->sc_mbuf = m;
return (NULL);
}
Home |
Main Index |
Thread Index |
Old Index