Merge pull request #302 from whzhe51/br_master

useradd.c:fix memleaks of grp
This commit is contained in:
Serge Hallyn 2020-12-27 00:37:46 -06:00 committed by GitHub
commit c917ed7b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,6 +411,7 @@ static void get_defaults (void)
} else { } else {
def_group = grp->gr_gid; def_group = grp->gr_gid;
def_gname = xstrdup (grp->gr_name); def_gname = xstrdup (grp->gr_name);
gr_free(grp);
} }
} }