diff options
author | Frederic Cambus <fred@statdns.com> | 2021-01-26 09:55:34 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-01-26 09:55:34 +0000 |
commit | e37709f0901fe6f2410094151002bab3d123df85 (patch) | |
tree | d88a26c223c0e962fb46a6cfda6fc158361dba16 /binutils | |
parent | d56834cbfb7c14b2ad723c75cc56db2de3c0f0e7 (diff) | |
download | fsf-binutils-gdb-e37709f0901fe6f2410094151002bab3d123df85.zip fsf-binutils-gdb-e37709f0901fe6f2410094151002bab3d123df85.tar.gz fsf-binutils-gdb-e37709f0901fe6f2410094151002bab3d123df85.tar.bz2 |
Fix thinko in objcopy's memory freeing code.
* objcopy.c (copy_main): Fix a double free happening when both
--localize-symbols and --globalize-symbols options are invoked
together.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/objcopy.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index b0a8da7..fd9f4bd 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2021-01-26 Frederic Cambus <fred@statdns.com> + + * objcopy.c (copy_main): Fix a double free happening when both + --localize-symbols and --globalize-symbols options are invoked + together. + 2021-01-24 Nick Clifton <nickc@redhat.com> * README-how-to-make-a-release: Minor updates after the 2.36 release. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 62ee222..a5cead1 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -6018,7 +6018,7 @@ copy_main (int argc, char *argv[]) free (keep_specific_buffer); if (localize_specific_buffer) - free (globalize_specific_buffer); + free (localize_specific_buffer); if (globalize_specific_buffer) free (globalize_specific_buffer); |