* grp.cc (read_etc_group): Just reuse group_buf storage for subsequent reread
of /etc/group. * passwd.cc (read_etc_passwd): Just reuse passwd_buf storage for subsequent reread of /etc/passwd.
This commit is contained in:
@@ -152,8 +152,7 @@ read_etc_group ()
|
||||
free (group_buf[i].gr_name);
|
||||
free (group_buf[i].gr_mem);
|
||||
}
|
||||
free (group_buf);
|
||||
curr_lines = max_lines = 0;
|
||||
curr_lines = 0;
|
||||
}
|
||||
|
||||
FILE *f = fopen (etc_group, "rt");
|
||||
|
Reference in New Issue
Block a user