aboutsummaryrefslogtreecommitdiff
path: root/gdb/expprint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-09 18:03:38 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-09 18:03:38 +0000
commit4ef3f3be7ae2203142ecf69debf476b3545c7653 (patch)
treedcd54051f238a7405266dfe99b3fb25bb404ea5e /gdb/expprint.c
parent754533e434690f9b836c21e5457e2d3e6e1625b1 (diff)
downloadgdb-4ef3f3be7ae2203142ecf69debf476b3545c7653.zip
gdb-4ef3f3be7ae2203142ecf69debf476b3545c7653.tar.gz
gdb-4ef3f3be7ae2203142ecf69debf476b3545c7653.tar.bz2
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".
Diffstat (limited to 'gdb/expprint.c')
-rw-r--r--gdb/expprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/expprint.c b/gdb/expprint.c
index b4fec74..a59a86a 100644
--- a/gdb/expprint.c
+++ b/gdb/expprint.c
@@ -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;
}