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:
Frederic Cambus
2021-01-26 09:55:34 +00:00
committed by Nick Clifton
parent d56834cbfb
commit e37709f090
2 changed files with 7 additions and 1 deletions

View File

@@ -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);