From: Nick Clifton Date: Fri, 12 Jun 2009 13:54:44 +0000 (+0000) Subject: * readelf.c (process_symbol_table): Set gnubuckets to NULL after X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f64fddf13afcb479b598e0d898fbb84b1da7474b;p=binutils-gdb.git * readelf.c (process_symbol_table): Set gnubuckets to NULL after freeing it and before returning. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 76bf2a9951e..e70dd68e822 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 af372fd44d9..7c45adeb4b4 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; } }