From 08f08ce684d4d86788dd9a0d262ef461dacecf01 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 18 Nov 2006 23:57:08 +0000 Subject: [PATCH] * 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 7f7ea3727dd..49ef84ca8e9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/gdb/prologue-value.c b/gdb/prologue-value.c index 4ad4d6c828f..b8f32bc4161 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); -- 2.30.2