diff options
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 86eb578..6280eb7 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,10 @@ 2020-04-20 Alan Modra <amodra@gmail.com> + * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets + and nbuckets. + +2020-04-20 Alan Modra <amodra@gmail.com> + * readelf.c (process_section_headers): Free dynamic symbols etc. earlier. diff --git a/binutils/readelf.c b/binutils/readelf.c index d9c9b7e..ea30f88 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -12188,6 +12188,7 @@ process_symbol_table (Filedata * filedata) free (buckets); buckets = NULL; + nbuckets = 0; free (chains); chains = NULL; @@ -12263,8 +12264,10 @@ process_symbol_table (Filedata * filedata) } free (gnubuckets); gnubuckets = NULL; + ngnubuckets = 0; free (gnuchains); gnuchains = NULL; + ngnuchains = 0; free (mipsxlat); mipsxlat = NULL; return TRUE; @@ -12272,12 +12275,15 @@ process_symbol_table (Filedata * filedata) err_out: free (gnubuckets); gnubuckets = NULL; + ngnubuckets = 0; free (gnuchains); gnuchains = NULL; + ngnuchains = 0 free (mipsxlat); mipsxlat = NULL; free (buckets); buckets = NULL; + nbuckets = 0; free (chains); chains = NULL; return FALSE; |