Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2019 16:34:40 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r356037 - stable/12/sys/net
Message-ID:  <201912231634.xBNGYeRE089901@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Dec 23 16:34:39 2019
New Revision: 356037
URL: https://svnweb.freebsd.org/changeset/base/356037

Log:
  MFC r355938:
  Fix a memory leak in if_delgroups() introduced in r334118.
  
  PR:	242712

Modified:
  stable/12/sys/net/if.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/net/if.c
==============================================================================
--- stable/12/sys/net/if.c	Mon Dec 23 10:06:32 2019	(r356036)
+++ stable/12/sys/net/if.c	Mon Dec 23 16:34:39 2019	(r356037)
@@ -1580,6 +1580,7 @@ if_delgroups(struct ifnet *ifp)
 								ifgl->ifgl_group);
 			free(ifgl->ifgl_group, M_TEMP);
 		}
+		free(ifgl, M_TEMP);
 		EVENTHANDLER_INVOKE(group_change_event, groupname);
 
 		IFNET_WLOCK();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912231634.xBNGYeRE089901>