From: Mateusz Manowiecki Date: Thu, 26 Feb 2015 21:06:46 +0000 (+0100) Subject: jtag/drivers/ftdi.c: removed memory leak X-Git-Tag: v0.9.0-rc1~68 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=09ca5af4d01e00ccec4fa7ff5b3281cae26ed375;p=openocd jtag/drivers/ftdi.c: removed memory leak 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 --- 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; }