jtag: Fix memory leaks in jtag_tap_free()

Change-Id: I953fbb346fbf168fb50b349d245f2aa64dbfdcb3
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/2234
Tested-by: jenkins
This commit is contained in:
Andreas Fritiofson 2014-07-30 23:18:41 +02:00 committed by Spencer Oliver
parent c3ec1940b5
commit 9330147fae
1 changed files with 2 additions and 1 deletions

View File

@ -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);