Fix small objcopy memory leak
* objcopy.c (copy_archive): Free l->name.
This commit is contained in:
parent
13de66dd34
commit
c5d4b1b604
1 changed files with 1 additions and 0 deletions
|
@ -3744,6 +3744,7 @@ copy_archive (bfd *ibfd, bfd *obfd, const char *output_target,
|
|||
bfd_close (l->obfd);
|
||||
unlink (l->name);
|
||||
}
|
||||
free ((char *) l->name);
|
||||
next = l->next;
|
||||
free (l);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue