Skip to content

Question about PHYSFS_close() error handling #127

Description

@wermipls

The documentation says "the filehandle stays open" if PHYSFS_close() fails; implementation checks out (the handle remains unclosed on flush failure). How do I avoid leaking handles on error?

Note that in contrast, fclose() call from libc can fail, but the handle gets closed unconditionally (see second paragraph here). Wouldn't this be a more appropriate solution from API standpoint?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions