Skip to content

Commit

Permalink
hosted/bmp_libusb: Fixed a small memory leak in the FTDI failure path…
Browse files Browse the repository at this point in the history
… of `find_debuggers`
  • Loading branch information
lethalbit authored and dragonmux committed Sep 16, 2023
1 parent 3eabf98 commit 7bf56b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platforms/hosted/bmp_libusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ int find_debuggers(bmda_cli_options_s *cl_opts, bmda_probe_s *info)
// Don't know the cable type, ask user to specify with "-c"
DEBUG_WARN("Multiple FTDI adapters match Vendor and Product ID.\n");
DEBUG_WARN("Please specify adapter type on command line using \"-c\" option.\n");
probe_info_list_free(probe_list);
return -1; //false
}
/* If the selected probe is CMSIS-DAP, check for v2 interfaces */
Expand Down

0 comments on commit 7bf56b0

Please sign in to comment.