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
commit502df130577339e30647c32a728b01c2fe99e78e (patch)
treee95301c187328674b6401a649eecfc81d5695df5 /gas/stabs.c
parentf2eb0bc849b3c5598d02a2b83b2cef29312a171d (diff)
downloadbinutils-gdb-502df130577339e30647c32a728b01c2fe99e78e.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 f197ebdac73..e0594fa5d4e 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);
}