From 09ca5af4d01e00ccec4fa7ff5b3281cae26ed375 Mon Sep 17 00:00:00 2001 From: Mateusz Manowiecki Date: Thu, 26 Feb 2015 22:06:46 +0100 Subject: [PATCH] jtag/drivers/ftdi.c: removed memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit swd_cmd_queue buffer memory leak removed Change-Id: Iafcdf034d32a37d577b58b6256c8fd9b064ce228 Signed-off-by: Mateusz Manowiecki Reviewed-on: http://openocd.zylin.com/2563 Tested-by: jenkins Reviewed-by: Andreas Färber Reviewed-by: Andreas Fritiofson Reviewed-by: Spencer Oliver --- src/jtag/drivers/ftdi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c index 7df6389e..14c59082 100644 --- a/src/jtag/drivers/ftdi.c +++ b/src/jtag/drivers/ftdi.c @@ -662,6 +662,8 @@ static int ftdi_quit(void) { mpsse_close(mpsse_ctx); + free(swd_cmd_queue); + return ERROR_OK; } -- 2.39.5