forked from Imagelibrary/binutils-gdb
Fix a memory leak when processing archives.
PR 22449 * ar.c (write_archive): Free the temporary file name.
This commit is contained in:
@@ -1197,6 +1197,7 @@ write_archive (bfd *iarch)
|
||||
if (smart_rename (new_name, old_name, 0) != 0)
|
||||
xexit (1);
|
||||
free (old_name);
|
||||
free (new_name);
|
||||
}
|
||||
|
||||
/* Return a pointer to the pointer to the entry which should be rplacd'd
|
||||
|
||||
Reference in New Issue
Block a user