* 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 76bf2a9951e597f40560b5c6266e6cc44e7e195f..e70dd68e8220f60961cad030c599b604a17f67b4 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 af372fd44d956521a5429b7b60b473fd54529398..7c45adeb4b4c935e6942c2de9fc629122d16f7c5 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;
        }
     }
 
This page took 0.028482 seconds and 4 git commands to generate.