* grp.cc (read_group): Set __group32.gr_mem pointer back to &null_ptr after
free() is called.
This commit is contained in:
parent
61bbf8b2b7
commit
b344f1876c
|
@ -1,3 +1,8 @@
|
||||||
|
2003-08-08 David Rothenberger <daveroth@acm.org>
|
||||||
|
|
||||||
|
* grp.cc (read_group): Set __group32.gr_mem pointer back to &null_ptr
|
||||||
|
after free() is called.
|
||||||
|
|
||||||
2003-08-05 Christopher Faylor <cgf@redhat.com>
|
2003-08-05 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* Makefile.in: Rework to accommodate new speclib arguments.
|
* Makefile.in: Rework to accommodate new speclib arguments.
|
||||||
|
|
|
@ -75,7 +75,10 @@ pwdgrp::read_group ()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < gr.curr_lines; i++)
|
for (int i = 0; i < gr.curr_lines; i++)
|
||||||
if ((*group_buf)[i].gr_mem != &null_ptr)
|
if ((*group_buf)[i].gr_mem != &null_ptr)
|
||||||
free ((*group_buf)[i].gr_mem);
|
{
|
||||||
|
free ((*group_buf)[i].gr_mem);
|
||||||
|
(*group_buf)[i].gr_mem = &null_ptr;
|
||||||
|
}
|
||||||
|
|
||||||
load ("/etc/group");
|
load ("/etc/group");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue