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:
@@ -1,3 +1,8 @@
|
||||
2017-11-17 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 22449
|
||||
* ar.c (write_archive): Free the temporary file name.
|
||||
|
||||
2017-11-17 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* readelf.c (process_archive): Include member name in the
|
||||
|
||||
@@ -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