This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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);
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]