summaryrefslogtreecommitdiff
path: root/gas/stabs.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-03-11 14:18:24 +0000
committerNick Clifton <nickc@redhat.com>2011-03-11 14:18:24 +0000
commitc507f70c2fd93e7ccabc35dc7c7616895d19b287 (patch)
tree88a02558afebd1b92bd194e7e223e31d98282851 /gas/stabs.c
parentcb257921744098991b33b318ea0224dff05df603 (diff)
downloadbinutils-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.c1
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);
}