Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net don't leak mbufs.



details:   https://anonhg.NetBSD.org/src/rev/5399e13856df
branches:  trunk
changeset: 772055:5399e13856df
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Dec 15 22:20:26 2011 +0000

description:
don't leak mbufs.

diffstat:

 sys/net/bpf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 6dadf525517c -r 5399e13856df sys/net/bpf.c
--- a/sys/net/bpf.c     Thu Dec 15 20:55:02 2011 +0000
+++ b/sys/net/bpf.c     Thu Dec 15 22:20:26 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bpf.c,v 1.166 2011/08/30 14:22:22 bouyer Exp $ */
+/*     $NetBSD: bpf.c,v 1.167 2011/12/15 22:20:26 christos Exp $       */
 
 /*
  * Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.166 2011/08/30 14:22:22 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.167 2011/12/15 22:20:26 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_bpf.h"
@@ -681,8 +681,8 @@
        if (mc != NULL) {
                if (error == 0)
                        (*ifp->if_input)(ifp, mc);
-       } else
                m_freem(mc);
+       }
        splx(s);
        KERNEL_UNLOCK_ONE(NULL);
        /*



Home | Main Index | Thread Index | Old Index