adiv5_swdp: Fix another memory leak.
This commit is contained in:
parent
2ae62433d2
commit
09ceaea70f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user