This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFA/gas] stabs.c (stabs_generate_asm_file): Free malloced 'dir'.
- From: Michael Snyder <msnyder at vmware dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 09 Mar 2011 12:59:15 -0800
- Subject: [RFA/gas] stabs.c (stabs_generate_asm_file): Free malloced 'dir'.
OK?
2011-03-09 Michael Snyder <msnyder@vmware.com>
* stabs.c (stabs_generate_asm_file): Free malloced 'dir'.
Index: stabs.c
===================================================================
RCS file: /cvs/src/src/gas/stabs.c,v
retrieving revision 1.34
diff -u -p -r1.34 stabs.c
--- stabs.c 28 Feb 2011 18:32:52 -0000 1.34
+++ stabs.c 9 Mar 2011 20:56:43 -0000
@@ -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 (dir);
}
generate_asm_file (N_SO, file);
}