From: Tom Tromey Date: Mon, 22 Dec 2008 14:06:27 +0000 (+0000) Subject: 2008-12-22 Adam Denton X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a61c7a6d7efba6be879313c546887243f50d8ae;p=binutils-gdb.git 2008-12-22 Adam Denton PR gdb/8307: * environ.c (free_environ): Free e->vector. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2a0a8c400e9..362154c4c00 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-12-22 Adam Denton + + PR gdb/8307: + * environ.c (free_environ): Free e->vector. + 2008-12-22 Jan Kratochvil Fix memory double-free. diff --git a/gdb/environ.c b/gdb/environ.c index ee471adc664..cd40193bc67 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); }