diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-05-06 13:05:17 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-05-06 13:05:17 +0000 |
commit | ac1bd155c20d38eec1400fece84c18420f35e802 (patch) | |
tree | b021b44a124d29231858ec322311b795f0fa6bd4 /src/server | |
parent | 32b274eb9bed2edd15d11872cd287c50f73e6e39 (diff) | |
download | riscv-openocd-ac1bd155c20d38eec1400fece84c18420f35e802.zip riscv-openocd-ac1bd155c20d38eec1400fece84c18420f35e802.tar.gz riscv-openocd-ac1bd155c20d38eec1400fece84c18420f35e802.tar.bz2 |
Edgar Grimberg found tiny memory leak
git-svn-id: svn://svn.berlios.de/openocd/trunk@644 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index c1b178d..7c28dc0 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, "</memory-map>\n"); |