From: Andreas Fritiofson Date: Wed, 30 Jul 2014 21:18:41 +0000 (+0200) Subject: jtag: Fix memory leaks in jtag_tap_free() X-Git-Tag: v0.9.0-rc1~215 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9330147fae3872269b08bad8edcffb5162e707a9;p=openocd 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 --- 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);