aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-11-18 23:57:08 +0000
committerDaniel Jacobowitz <drow@false.org>2006-11-18 23:57:08 +0000
commit08f08ce684d4d86788dd9a0d262ef461dacecf01 (patch)
tree633131d97702dc1c0f92dc1ec192cdbcd8fb164a
parentaef9c3b3f539d16ff8286c492038090d29f9aa68 (diff)
downloadgdb-08f08ce684d4d86788dd9a0d262ef461dacecf01.zip
gdb-08f08ce684d4d86788dd9a0d262ef461dacecf01.tar.gz
gdb-08f08ce684d4d86788dd9a0d262ef461dacecf01.tar.bz2
* prologue-value.c (clear_entries): Fix memory leak.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/prologue-value.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7f7ea37..49ef84c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
+ * prologue-value.c (clear_entries): Fix memory leak.
+
+2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
+
* parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before
dereferencing it.
diff --git a/gdb/prologue-value.c b/gdb/prologue-value.c
index 4ad4d6c..b8f32bc 100644
--- a/gdb/prologue-value.c
+++ b/gdb/prologue-value.c
@@ -351,6 +351,7 @@ clear_entries (struct pv_area *area)
{
struct area_entry *next = e->next;
xfree (e);
+ e = next;
}
while (e != area->entry);