mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
2008-12-22 Adam Denton <adenton@yahoo.com>
PR gdb/8307: * environ.c (free_environ): Free e->vector.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user