]> git.sur5r.net Git - openocd/commitdiff
jtag/drivers/ftdi.c: removed memory leak
authorMateusz Manowiecki <segmentation@fault.pl>
Thu, 26 Feb 2015 21:06:46 +0000 (22:06 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 25 Mar 2015 21:52:09 +0000 (21:52 +0000)
swd_cmd_queue buffer memory leak removed

Change-Id: Iafcdf034d32a37d577b58b6256c8fd9b064ce228
Signed-off-by: Mateusz Manowiecki <segmentation@fault.pl>
Reviewed-on: http://openocd.zylin.com/2563
Tested-by: jenkins
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/ftdi.c

index 7df6389e24b6c4ea73d2bd34cc8701d6977128f0..14c5908274619b6fe8b2fb489dd42fcb7f282f57 100644 (file)
@@ -662,6 +662,8 @@ static int ftdi_quit(void)
 {
        mpsse_close(mpsse_ctx);
 
+       free(swd_cmd_queue);
+
        return ERROR_OK;
 }