* readelf.c (process_symbol_table): Set gnubuckets to NULL after
authorNick Clifton <nickc@redhat.com>
Fri, 12 Jun 2009 13:54:44 +0000 (13:54 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 12 Jun 2009 13:54:44 +0000 (13:54 +0000)
        freeing it and before returning.

binutils/ChangeLog
binutils/readelf.c

index 76bf2a9..e70dd68 100644 (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
index af372fd..7c45ade 100644 (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;
        }
     }