* target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
+2008-06-21 Hui Zhu <teawater@gmail.com>
+
+ * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
+
2008-07-03 Pedro Alves <pedro@codesourcery.com>
* config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
error (_("The current target description did not come from an XML file."));
filename = lbasename (target_description_filename);
- function = xmalloc (strlen (filename) + 1);
+ function = alloca (strlen (filename) + 1);
for (inp = filename, outp = function; *inp != '\0'; inp++)
if (*inp == '.')
break;