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.
This commit is contained in:
parent
d56834cbfb
commit
e37709f090
@ -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.
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user