summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2013-01-06 21:56:58 +0000
committermjg <mjg@FreeBSD.org>2013-01-06 21:56:58 +0000
commit580a3aadfb3f2d64b5a4b1b464d338e3c211b1ea (patch)
tree72d3345b01580b764499567cec317594a86771c4 /usr.sbin/pw
parent10b2623aaca510896c1497a479d4a8b7e165ab41 (diff)
downloadFreeBSD-src-580a3aadfb3f2d64b5a4b1b464d338e3c211b1ea.zip
FreeBSD-src-580a3aadfb3f2d64b5a4b1b464d338e3c211b1ea.tar.gz
pw: free group returned by gr_add
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r--usr.sbin/pw/pw_user.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
index 5577511..38f21ce 100644
--- a/usr.sbin/pw/pw_user.c
+++ b/usr.sbin/pw/pw_user.c
@@ -758,6 +758,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args)
if (grp == NULL)
continue;
chggrent(cnf->groups[i], grp);
+ free(grp);
}
}
OpenPOWER on IntegriCloud