Module Name:    src
Committed By:   yamaguchi
Date:           Thu Mar 31 01:40:34 UTC 2022

Modified Files:
        src/sys/net/lagg: if_lagg_lacp.c

Log Message:
Added missing kmem_free

pointed out by k-goda@IIJ


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/net/lagg/if_lagg_lacp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/lagg/if_lagg_lacp.c
diff -u src/sys/net/lagg/if_lagg_lacp.c:1.14 src/sys/net/lagg/if_lagg_lacp.c:1.15
--- src/sys/net/lagg/if_lagg_lacp.c:1.14	Thu Mar 31 01:36:47 2022
+++ src/sys/net/lagg/if_lagg_lacp.c	Thu Mar 31 01:40:34 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_lagg_lacp.c,v 1.14 2022/03/31 01:36:47 yamaguchi Exp $	*/
+/*	$NetBSD: if_lagg_lacp.c,v 1.15 2022/03/31 01:40:34 yamaguchi Exp $	*/
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause-NetBSD
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.14 2022/03/31 01:36:47 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.15 2022/03/31 01:40:34 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_lagg.h"
@@ -499,6 +499,7 @@ lacp_attach(struct lagg_softc *sc, struc
 
 destroy_lock:
 	mutex_destroy(&lsc->lsc_lock);
+	kmem_free(lsc, sizeof(*lsc));
 
 	return error;
 }

Reply via email to