cryptkeeper icon indicating copy to clipboard operation
cryptkeeper copied to clipboard

fix is_mounted (memory leaks and NULL access)

Open jmtd opened this issue 13 years ago • 0 comments

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.

jmtd avatar May 22 '11 11:05 jmtd