* readelf.c (process_symbol_table): Set gnubuckets to NULL after

freeing it and before returning.
This commit is contained in:
Nick Clifton 2009-06-12 13:54:44 +00:00
parent 8c7d38e8f0
commit f64fddf13a
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-06-12 John Reiser <jreiser@BitWagon.com>
* readelf.c (process_symbol_table): Set gnubuckets to NULL after
freeing it and before returning.
2009-06-12 Jakub Jelinek <jakub@redhat.com>
* readelf.c (process_symbol_table): Don't return early if

View File

@ -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;
}
}