-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatted #12
base: master
Are you sure you want to change the base?
Formatted #12
Conversation
gphotofs.c
Outdated
if (ret > 1) { | ||
|
||
g_fprintf(stderr, "Multiple cameras detected on specified port. Model is required.\n"); | ||
return GP_ERROR; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the list is never freed. Here or below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary? I'm considering this to be the same case as ret != 0, where the whole program exits immediately without proceeding to the actual mount.
gphotofs.c
Outdated
return GP_ERROR; | ||
} else if (ret < 1) { | ||
g_fprintf(stderr, "No cameras detected on specified port.\n"); | ||
return ret; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above. cameraList is not freed.
Make --port work right as per #11