jtag/drivers/ftdi.c: removed memory leak

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>
This commit is contained in:
Mateusz Manowiecki 2015-02-26 22:06:46 +01:00 committed by Spencer Oliver
parent 06707fe159
commit 09ca5af4d0
1 changed files with 2 additions and 0 deletions

View File

@ -662,6 +662,8 @@ static int ftdi_quit(void)
{
mpsse_close(mpsse_ctx);
free(swd_cmd_queue);
return ERROR_OK;
}