adiv5_swdp: Fix another memory leak.

This commit is contained in:
Uwe Bonnes 2020-07-13 17:42:42 +02:00 committed by UweBonnes
parent 2ae62433d2
commit 09ceaea70f

View File

@ -78,7 +78,8 @@ int adiv5_swdp_scan(void)
firmware_swdp_error(dp);
adiv5_dp_init(dp);
if (!target_list)
free(dp);
return target_list?1:0;
}