From 9687748d9ed8bbe26da712cbfd48ea3e527cdbb7 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 12 Jun 2009 13:54:44 +0000 Subject: [PATCH] * readelf.c (process_symbol_table): Set gnubuckets to NULL after freeing it and before returning. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 76bf2a9951..e70dd68e82 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2009-06-12 John Reiser + + * readelf.c (process_symbol_table): Set gnubuckets to NULL after + freeing it and before returning. + 2009-06-12 Jakub Jelinek * readelf.c (process_symbol_table): Don't return early if diff --git a/binutils/readelf.c b/binutils/readelf.c index af372fd44d..7c45adeb4b 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -7289,10 +7289,10 @@ process_symbol_table (FILE * file) if (gnuchains == NULL) { free (gnubuckets); - if (do_using_dynamic) - return 0; gnubuckets = NULL; ngnubuckets = 0; + if (do_using_dynamic) + return 0; } } -- 2.11.0