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 free sc_rthash twice
details: https://anonhg.NetBSD.org/src/rev/53ca1b0fff38
branches: trunk
changeset: 357057:53ca1b0fff38
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Oct 25 04:17:34 2017 +0000
description:
Don't free sc_rthash twice
diffstat:
sys/net/if_bridge.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 2026c50e961f -r 53ca1b0fff38 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Tue Oct 24 22:38:32 2017 +0000
+++ b/sys/net/if_bridge.c Wed Oct 25 04:17:34 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.136 2017/10/23 09:22:51 msaitoh Exp $ */
+/* $NetBSD: if_bridge.c,v 1.137 2017/10/25 04:17:34 ozaki-r Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.136 2017/10/23 09:22:51 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.137 2017/10/25 04:17:34 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_bridge_ipf.h"
@@ -494,7 +494,6 @@
callout_destroy(&sc->sc_brcallout);
callout_destroy(&sc->sc_bstpcallout);
workqueue_destroy(sc->sc_rtage_wq);
- kmem_free(sc->sc_rthash, sizeof(*sc->sc_rthash) * BRIDGE_RTHASH_SIZE);
kmem_free(sc, sizeof(*sc));
return 0;
Home |
Main Index |
Thread Index |
Old Index