Skip to content

Commit

Permalink
adiv5: Fixed a leak of the AP in the Tiva-C bailout path in `adiv5_dp…
Browse files Browse the repository at this point in the history
…_init`
  • Loading branch information
dragonmux committed Nov 30, 2023
1 parent 8c11e8e commit 4c8c545
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/target/adiv5.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ void adiv5_dp_init(adiv5_debug_port_s *const dp)
*/
if (target->priv_free == cortex_priv_free && cortex_ap(target) == ap &&
strstr(target->driver, "Tiva") != NULL) {
adiv5_ap_unref(ap);
adiv5_dp_unref(dp);
return;
}
Expand Down

0 comments on commit 4c8c545

Please sign in to comment.