From 9330147fae3872269b08bad8edcffb5162e707a9 Mon Sep 17 00:00:00 2001 From: Andreas Fritiofson Date: Wed, 30 Jul 2014 23:18:41 +0200 Subject: [PATCH] jtag: Fix memory leaks in jtag_tap_free() Change-Id: I953fbb346fbf168fb50b349d245f2aa64dbfdcb3 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/2234 Tested-by: jenkins --- src/jtag/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jtag/core.c b/src/jtag/core.c index f82b05e1..44aed30a 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); -- 2.39.5