This is an automated email from Gerrit.

Andreas Fritiofson ([email protected]) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/2234

-- gerrit

commit bb168e2a464c7ee3b81706e009f337599042cbfa
Author: Andreas Fritiofson <[email protected]>
Date:   Wed Jul 30 23:18:41 2014 +0200

    jtag: Fix memory leaks in jtag_tap_free()
    
    Change-Id: I953fbb346fbf168fb50b349d245f2aa64dbfdcb3
    Signed-off-by: Andreas Fritiofson <[email protected]>

diff --git a/src/jtag/core.c b/src/jtag/core.c
index f82b05e..44aed30 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -1326,9 +1326,10 @@ void jtag_tap_free(struct jtag_tap *tap)
 {
        jtag_unregister_event_callback(&jtag_reset_callback, tap);
 
-       /** @todo is anything missing? no memory leaks please */
        free(tap->expected);
+       free(tap->expected_mask);
        free(tap->expected_ids);
+       free(tap->cur_instr);
        free(tap->chip);
        free(tap->tapname);
        free(tap->dotted_name);

-- 

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to