objcopy memory leak
PR 22426 * objcopy.c (copy_main): Free tmpname.
This commit is contained in:
parent
a506516086
commit
be74fad95e
@ -1,3 +1,8 @@
|
||||
2017-11-15 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 22426
|
||||
* objcopy.c (copy_main): Free tmpname.
|
||||
|
||||
2017-11-15 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 15152
|
||||
|
@ -5301,6 +5301,9 @@ copy_main (int argc, char *argv[])
|
||||
else
|
||||
unlink_if_ordinary (tmpname);
|
||||
|
||||
if (tmpname != output_filename)
|
||||
free (tmpname);
|
||||
|
||||
if (change_warn)
|
||||
{
|
||||
struct section_list *p;
|
||||
|
Loading…
Reference in New Issue
Block a user