From 8040bd496a7b8f731ff684e6b2d3089473012f73 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 28 Feb 2011 15:55:08 +0000 Subject: [PATCH] * hostio.c (require_data): Free *data, not data. --- 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 34d63ff712..02b50a4cd8 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2011-02-28 Ulrich Weigand + + * hostio.c (require_data): Free *data, not data. + 2011-02-28 Jan Kratochvil * hostio.c (require_data): Use free, not xfree. diff --git a/gdb/gdbserver/hostio.c b/gdb/gdbserver/hostio.c index fbd286f0cd..3b65febcf6 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) { - free (data); + free (*data); return -1; }