diff --git a/src/useradd.c b/src/useradd.c index 264765d1..1dbbcf3d 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -411,6 +411,7 @@ static void get_defaults (void) } else { def_group = grp->gr_gid; def_gname = xstrdup (grp->gr_name); + gr_free(grp); } }