aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-06-12 13:54:44 +0000
committerNick Clifton <nickc@redhat.com>2009-06-12 13:54:44 +0000
commitf64fddf13afcb479b598e0d898fbb84b1da7474b (patch)
treef22401b6a5d491e35117cc8fc0840ac4bd2d86b4 /binutils/readelf.c
parent8c7d38e8f0eb20955214cca062ff6deec0c60db3 (diff)
downloadgdb-f64fddf13afcb479b598e0d898fbb84b1da7474b.zip
gdb-f64fddf13afcb479b598e0d898fbb84b1da7474b.tar.gz
gdb-f64fddf13afcb479b598e0d898fbb84b1da7474b.tar.bz2
* readelf.c (process_symbol_table): Set gnubuckets to NULL after
freeing it and before returning.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index af372fd..7c45ade 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;
}
}