2003-01-09 Andrew Cagney <ac131313@redhat.com>

* infrun.c (follow_fork): Use ISO C definition.
	* expprint.c (print_subexp): Use xfree instead of free.
	* charset.c: Include "gdb_string.h" instead of <string.h>.
	(register_iconv_charsets): Use ISO C definition.
	(host_charset, target_charset): Ditto.
	* Makefile.in (charset.o): Update dependencies.
	(mi-cmd-env.o): Update dependencies.

Index: mi/ChangeLog
2003-01-09  Andrew Cagney  <ac131313@redhat.com>

	* mi-cmd-env.c: Include "gdb_string.h" instead of <string.h>.
	Move all includes to after "defs.h".
This commit is contained in:
Andrew Cagney
2003-01-09 18:03:38 +00:00
parent 754533e434
commit 4ef3f3be7a
7 changed files with 31 additions and 15 deletions

View File

@@ -220,7 +220,7 @@ print_subexp (register struct expression *exp, register int *pos,
}
fprintf_unfiltered (stream, "]");
/* "selector" was malloc'd by target_read_string. Free it. */
free (selector);
xfree (selector);
return;
}