Revert "useradd.c:fix memleaks of grp"
In some cases, the value which was being freed is not actually
safe to free.
Closes #394
This reverts commit c44b71cec2
.
This commit is contained in:
parent
009e09fd58
commit
4624e9fca1
@ -413,7 +413,6 @@ 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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user