From 7e52cbd0c66ef98b19be5b4da97b086bfcdb5df0 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 28 Feb 2011 04:20:30 +0000 Subject: [PATCH] gdb/gdbserver/ * hostio.c (require_data): Use free, not xfree. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/hostio.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 914930434c6..34d63ff712d 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2011-02-28 Jan Kratochvil + + * hostio.c (require_data): Use free, not xfree. + 2011-02-27 Michael Snyder * server.c (handle_query): Discard unused value. diff --git a/gdb/gdbserver/hostio.c b/gdb/gdbserver/hostio.c index df4cc7885fc..fbd286f0cdf 100644 --- a/gdb/gdbserver/hostio.c +++ b/gdb/gdbserver/hostio.c @@ -135,7 +135,7 @@ require_data (char *p, int p_len, char **data, int *data_len) if (escaped) { - xfree (data); + free (data); return -1; } -- 2.30.2