2008-12-22 Adam Denton <adenton@yahoo.com>
PR gdb/8307: * environ.c (free_environ): Free e->vector.
This commit is contained in:
parent
6f4de6c97d
commit
9a61c7a6d7
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-12-22 Adam Denton <adenton@yahoo.com>
|
||||
|
||||
PR gdb/8307:
|
||||
* environ.c (free_environ): Free e->vector.
|
||||
|
||||
2008-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Fix memory double-free.
|
||||
|
|
|
@ -49,6 +49,7 @@ free_environ (struct gdb_environ *e)
|
|||
while (*vector)
|
||||
xfree (*vector++);
|
||||
|
||||
xfree (e->vector);
|
||||
xfree (e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue