mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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:
committed by
Nick Clifton
parent
d56834cbfb
commit
e37709f090
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user