diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/environ.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2a0a8c4..362154c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/environ.c b/gdb/environ.c index ee471ad..cd40193 100644 --- a/gdb/environ.c +++ b/gdb/environ.c @@ -49,6 +49,7 @@ free_environ (struct gdb_environ *e) while (*vector) xfree (*vector++); + xfree (e->vector); xfree (e); } |