From: oharboe Date: Tue, 6 May 2008 13:05:17 +0000 (+0000) Subject: Edgar Grimberg found tiny memory leak X-Git-Tag: v0.1.0~645 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ac1bd155c20d38eec1400fece84c18420f35e802;p=openocd Edgar Grimberg found tiny memory leak git-svn-id: svn://svn.berlios.de/openocd/trunk@644 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index c1b178db..7c28dc08 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -1611,6 +1611,9 @@ int gdb_query_packet(connection_t *connection, target_t *target, char *packet, i /* a flash chip could be at the very end of the 32 bit address space, in which case ram_start will be precisely 0 */ } + + free(banks); + banks = NULL; xml_printf(&retval, &xml, &pos, &size, "\n");