From 08f08ce684d4d86788dd9a0d262ef461dacecf01 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 18 Nov 2006 23:57:08 +0000 Subject: * prologue-value.c (clear_entries): Fix memory leak. --- gdb/ChangeLog | 4 ++++ gdb/prologue-value.c | 1 + 2 files changed, 5 insertions(+) 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 + * prologue-value.c (clear_entries): Fix memory leak. + +2006-11-18 Pedro Alves + * 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); -- cgit v1.1