summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-12-22 14:06:27 +0000
committerTom Tromey <tromey@redhat.com>2008-12-22 14:06:27 +0000
commit9a61c7a6d7efba6be879313c546887243f50d8ae (patch)
tree73fcb8b9ff70ced02ec4ef8ba837d96f32af016b /gdb
parent6f4de6c97dfed92a46f3cd2d7d841b79da58ac81 (diff)
downloadbinutils-9a61c7a6d7efba6be879313c546887243f50d8ae.tar.gz
binutils-9a61c7a6d7efba6be879313c546887243f50d8ae.tar.bz2
binutils-9a61c7a6d7efba6be879313c546887243f50d8ae.zip
2008-12-22 Adam Denton <adenton@yahoo.com>
PR gdb/8307: * environ.c (free_environ): Free e->vector.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/environ.c1
2 files changed, 6 insertions, 0 deletions
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 <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 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);
}