Commit cc466b1e authored by Fabio Utzig's avatar Fabio Utzig
Browse files

Free device list when libusb_open throws an error

parent 5d7468de
......@@ -198,6 +198,7 @@ main(int argc, char *argv[])
if (rc != 0)
{
TRACE(ALWAYS, "Failed to open device. rc = %d\n", rc);
libusb_free_device_list(pDevices, 1);
goto out;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment