Merge pull request #93 from rahul1809/master
Double freeing up pointers , Causing Segmentation fault
This commit is contained in:
commit
5f3e3c2c62
@ -290,7 +290,8 @@ static int add_group (const char *name, const char *gid, gid_t *ngid, uid_t uid)
|
|||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: invalid group name '%s'\n"),
|
_("%s: invalid group name '%s'\n"),
|
||||||
Prog, grent.gr_name);
|
Prog, grent.gr_name);
|
||||||
free (grent.gr_name);
|
if (grent.gr_name)
|
||||||
|
free (grent.gr_name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user