projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/lisp: Share mark function for mark and move
[fw/altos]
/
ao-tools
/
ao-chaosread
/
ao-chaosread.c
diff --git
a/ao-tools/ao-chaosread/ao-chaosread.c
b/ao-tools/ao-chaosread/ao-chaosread.c
index ca7b65a7c89074d5e75ac6b11490dacd5fe78f5b..7808f6c91d5cdad2689219951ac117ff96bc6392 100644
(file)
--- a/
ao-tools/ao-chaosread/ao-chaosread.c
+++ b/
ao-tools/ao-chaosread/ao-chaosread.c
@@
-91,7
+91,6
@@
chaoskey_match(libusb_device *dev, char *match_serial)
return handle;
out:
return handle;
out:
- free(device_serial);
if (handle)
libusb_close(handle);
return 0;
if (handle)
libusb_close(handle);
return 0;
@@
-235,7
+234,7
@@
main (int argc, char **argv)
int infinite = 0;
int bytes = 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;
switch (c) {
case 's':
serial = optarg;