diff options
author | Nick Clifton <nickc@redhat.com> | 2011-03-11 14:18:24 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-03-11 14:18:24 +0000 |
commit | c507f70c2fd93e7ccabc35dc7c7616895d19b287 (patch) | |
tree | 88a02558afebd1b92bd194e7e223e31d98282851 /gas/stabs.c | |
parent | cb257921744098991b33b318ea0224dff05df603 (diff) | |
download | binutils-redhat-c507f70c2fd93e7ccabc35dc7c7616895d19b287.tar.gz |
* remap.c (remap_debug_filename): Always allocate a buffer for the
returned pointer.
* stabs.c (stabs_generate_asm_file): Free the pointer returned by
remap_debug_filename.
Diffstat (limited to 'gas/stabs.c')
-rw-r--r-- | gas/stabs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/stabs.c b/gas/stabs.c index f197ebdac7..e0594fa5d4 100644 --- a/gas/stabs.c +++ b/gas/stabs.c @@ -502,6 +502,7 @@ stabs_generate_asm_file (void) dir2 = (char *) alloca (strlen (dir) + 2); sprintf (dir2, "%s%s", dir, "/"); generate_asm_file (N_SO, dir2); + xfree ((char *) dir); } generate_asm_file (N_SO, file); } |