Skip to content

Commit 4c8c545

Browse files
committed
adiv5: Fixed a leak of the AP in the Tiva-C bailout path in adiv5_dp_init
1 parent 8c11e8e commit 4c8c545

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/target/adiv5.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ void adiv5_dp_init(adiv5_debug_port_s *const dp)
990990
*/
991991
if (target->priv_free == cortex_priv_free && cortex_ap(target) == ap &&
992992
strstr(target->driver, "Tiva") != NULL) {
993+
adiv5_ap_unref(ap);
993994
adiv5_dp_unref(dp);
994995
return;
995996
}

0 commit comments

Comments
 (0)