This is an automated email from Gerrit.

Mateusz Manowiecki (segmentat...@fault.pl) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/2563

-- gerrit

commit 0a868a73635c7f11057a676cccc8c441637761af
Author: Mateusz Manowiecki <segmentat...@fault.pl>
Date:   Thu Feb 26 22:06:46 2015 +0100

    jtag/drivers/ftdi.c: removed memory leak
    
    swd_cmd_queue buffer memory leak removed
    
    Change-Id: Iafcdf034d32a37d577b58b6256c8fd9b064ce228
    Signed-off-by: Mateusz Manowiecki <segmentat...@fault.pl>

diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c
index 7df6389..f1ba1bd 100644
--- a/src/jtag/drivers/ftdi.c
+++ b/src/jtag/drivers/ftdi.c
@@ -662,6 +662,9 @@ static int ftdi_quit(void)
 {
        mpsse_close(mpsse_ctx);
 
+       if (NULL != swd_cmd_queue)
+               free(swd_cmd_queue);
+
        return ERROR_OK;
 }
 

-- 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to