mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
Fix small objcopy memory leak
* objcopy.c (copy_archive): Free l->name.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user