From ac1bd155c20d38eec1400fece84c18420f35e802 Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 6 May 2008 13:05:17 +0000 Subject: [PATCH] Edgar Grimberg found tiny memory leak git-svn-id: svn://svn.berlios.de/openocd/trunk@644 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/server/gdb_server.c | 3 +++ 1 file changed, 3 insertions(+) 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"); -- 2.39.5