Fix signal-while-stepping-over-bp-other-thread.exp on targets always in non-stop
[binutils-gdb.git] / gas / stabs.c
index f197ebdac73ed1664b920b0ce2024e85c9d12d47..a7de9afb980aa26a34c72a2202a7df906ca4a34b 100644 (file)
@@ -1,6 +1,5 @@
 /* Generic stabs parsing for gas.
-   Copyright 1989, 1990, 1991, 1993, 1995, 1996, 1997, 1998, 2000, 2001
-   2002, 2003, 2004, 2005, 2007, 2009  Free Software Foundation, Inc.
+   Copyright (C) 1989-2015 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -502,6 +501,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);
 }