Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2013 21:56:59 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245114 - head/usr.sbin/pw
Message-ID:  <201301062156.r06LuxVD068085@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Sun Jan  6 21:56:58 2013
New Revision: 245114
URL: http://svnweb.freebsd.org/changeset/base/245114

Log:
  pw: free group returned by gr_add

Modified:
  head/usr.sbin/pw/pw_user.c

Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c	Sun Jan  6 21:47:59 2013	(r245113)
+++ head/usr.sbin/pw/pw_user.c	Sun Jan  6 21:56:58 2013	(r245114)
@@ -758,6 +758,7 @@ pw_user(struct userconf * cnf, int mode,
 			if (grp == NULL)
 				continue;
 			chggrent(cnf->groups[i], grp);
+			free(grp);
 		}
 	}
 



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