Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet arp: Plug an mbuf leak



details:   https://anonhg.NetBSD.org/src/rev/6fe291c389d7
branches:  trunk
changeset: 959151:6fe291c389d7
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue Feb 02 10:48:33 2021 +0000

description:
arp: Plug an mbuf leak

diffstat:

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

diffs (27 lines):

diff -r 1e714dd89d42 -r 6fe291c389d7 sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c      Tue Feb 02 10:46:17 2021 +0000
+++ b/sys/netinet/if_arp.c      Tue Feb 02 10:48:33 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arp.c,v 1.297 2020/09/15 10:05:36 roy Exp $ */
+/*     $NetBSD: if_arp.c,v 1.298 2021/02/02 10:48:33 yamt Exp $        */
 
 /*
  * Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.297 2020/09/15 10:05:36 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.298 2021/02/02 10:48:33 yamt Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1389,7 +1389,7 @@
                        mdaddr = ip->ip_src;
 
                /* ip_input() will send ICMP_UNREACH_HOST, not us. */
-               m_free(m);
+               m_freem(m);
        }
 
        if (mdaddr.s_addr != INADDR_ANY) {



Home | Main Index | Thread Index | Old Index