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:
parent
c3ec1940b5
commit
9330147fae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue