2011-02-27 Michael Snyder * hostio.c (require_data): Free malloc memory before returning error. Index: hostio.c =================================================================== RCS file: /cvs/src/src/gdb/gdbserver/hostio.c,v retrieving revision 1.11 diff -u -p -u -p -r1.11 hostio.c --- hostio.c 1 Jan 2011 15:33:24 -0000 1.11 +++ hostio.c 27 Feb 2011 21:48:00 -0000 @@ -134,7 +134,10 @@ require_data (char *p, int p_len, char * } if (escaped) - return -1; + { + xfree (data); + return -1; + } *data_len = output_index; return 0;