aboutsummaryrefslogtreecommitdiff
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
parent6f4de6c97dfed92a46f3cd2d7d841b79da58ac81 (diff)
downloadgdb-9a61c7a6d7efba6be879313c546887243f50d8ae.zip
gdb-9a61c7a6d7efba6be879313c546887243f50d8ae.tar.gz
gdb-9a61c7a6d7efba6be879313c546887243f50d8ae.tar.bz2
2008-12-22 Adam Denton <adenton@yahoo.com>
PR gdb/8307: * environ.c (free_environ): Free e->vector.
-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 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);
}