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 authored and esden committed Nov 30, 2023
1 parent 630461e commit 5df46dc
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 @@ -994,6 +994,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 5df46dc

Please sign in to comment.