projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f4de6c
)
2008-12-22 Adam Denton <adenton@yahoo.com>
author
Tom Tromey
<tromey@redhat.com>
Mon, 22 Dec 2008 14:06:27 +0000
(14:06 +0000)
committer
Tom Tromey
<tromey@redhat.com>
Mon, 22 Dec 2008 14:06:27 +0000
(14:06 +0000)
PR gdb/8307:
* environ.c (free_environ): Free e->vector.
gdb/ChangeLog
patch
|
blob
|
history
gdb/environ.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 2a0a8c400e9977d2430b237c8d797c213fc5e582..362154c4c00fb17ed0f4c6e729b217d911d4b949 100644
(file)
--- 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 ee471adc664173b7e21b89a73cb2355835f90e46..cd40193bc6772ebc0423df1c32fb98e521ebff62 100644
(file)
--- 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);
}