return handle;
out:
- free(device_serial);
if (handle)
libusb_close(handle);
return 0;
int infinite = 0;
int bytes = 0;
- while ((c = getopt_long(argc, argv, "s:l:", options, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "s:l:ib", options, NULL)) != -1) {
switch (c) {
case 's':
serial = optarg;