diff options
author | Nick Clifton <nickc@redhat.com> | 2011-03-25 17:18:54 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-03-25 17:18:54 +0000 |
commit | 8e4850a9e39ff6541d7e705710540191f7e23dc8 (patch) | |
tree | 7cd5121f21a74e2796bde340b7bfd0b9a008ef3f /binutils | |
parent | a1bc0327a3df4e35e5b923913536c31ca85f16dc (diff) | |
download | gdb-8e4850a9e39ff6541d7e705710540191f7e23dc8.zip gdb-8e4850a9e39ff6541d7e705710540191f7e23dc8.tar.gz gdb-8e4850a9e39ff6541d7e705710540191f7e23dc8.tar.bz2 |
* ar.c (write_archive): Plug memory leak.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 1 | ||||
-rw-r--r-- | binutils/ar.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index ae56956..99e5ed7 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -3,6 +3,7 @@ * strings.c (print_strings): Plug memory leak. * ar.c (move_members): Plug memory leak. (delete_members): Plug memory leak. + (write_archive): Plug memory leak. 2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr> diff --git a/binutils/ar.c b/binutils/ar.c index 263795f..206c7a9 100644 --- a/binutils/ar.c +++ b/binutils/ar.c @@ -1069,6 +1069,7 @@ write_archive (bfd *iarch) if (smart_rename (new_name, old_name, 0) != 0) xexit (1); + free (old_name); } /* Return a pointer to the pointer to the entry which should be rplacd'd |