2008-12-22 Adam Denton <adenton@yahoo.com>

PR gdb/8307:
	* environ.c (free_environ): Free e->vector.
This commit is contained in:
Tom Tromey 2008-12-22 14:06:27 +00:00
parent 6f4de6c97d
commit 9a61c7a6d7
2 changed files with 6 additions and 0 deletions

View file

@ -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.

View file

@ -49,6 +49,7 @@ free_environ (struct gdb_environ *e)
while (*vector)
xfree (*vector++);
xfree (e->vector);
xfree (e);
}