From 9a61c7a6d7efba6be879313c546887243f50d8ae Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 22 Dec 2008 14:06:27 +0000 Subject: [PATCH] 2008-12-22 Adam Denton PR gdb/8307: * environ.c (free_environ): Free e->vector. --- gdb/ChangeLog | 5 +++++ gdb/environ.c | 1 + 2 files changed, 6 insertions(+) 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); } -- 2.30.2