summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2013-01-06 21:56:58 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2013-01-06 21:56:58 +0000
commitdacca6ad00356bc4cd45aa4bca857ebe95cba244 (patch)
tree51c21db89cf3c7e9abd57d7ff389d37be67a5de6
parentf5d6684c8d9c572b686c5274162e3b17ae77091f (diff)
downloadpw-darwin-dacca6ad00356bc4cd45aa4bca857ebe95cba244.tar.gz
pw-darwin-dacca6ad00356bc4cd45aa4bca857ebe95cba244.tar.zst
pw-darwin-dacca6ad00356bc4cd45aa4bca857ebe95cba244.zip
pw: free group returned by gr_add
-rw-r--r--pw/pw_user.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index 5577511..38f21ce 100644
--- a/pw/pw_user.c
+++ b/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);
}
}