diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2013-01-06 21:56:58 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2013-01-06 21:56:58 +0000 |
commit | 1f09eec3f802e089aaa8dc1beaa9372d041c7ca7 (patch) | |
tree | 72d3345b01580b764499567cec317594a86771c4 /usr.sbin/pw | |
parent | 43287e27531251114da973bfed8d035114a22ac3 (diff) | |
download | src-1f09eec3f802e089aaa8dc1beaa9372d041c7ca7.tar.gz src-1f09eec3f802e089aaa8dc1beaa9372d041c7ca7.zip |
pw: free group returned by gr_add
Notes
Notes:
svn path=/head/; revision=245114
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r-- | usr.sbin/pw/pw_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 557751107277..38f21cee61a2 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); } } |