Skip to content
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

fix is_mounted (memory leaks and NULL access) #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmtd
Copy link

@jmtd jmtd commented May 22, 2011

Tomm: please disregard my previous pull request, which was bad. (Sorry, rusty at C). This one works :-)

I experimented with stack-allocated fixed buffers for use with realpath but unfortunately PATH_MAX is not portable.

Ensure that the return of realpath is checked for NULL before
access. Ensure that the return value is free'd before it falls
out of scope. Related tidying up.

Ensure that the return of realpath is checked for NULL before
access.  Ensure that the return value is free'd before it falls
out of scope.  Related tidying up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant