Skip to content

Resource Management by highfive #789

Answered by 1uc
kpolitis-msim asked this question in Questions
Discussion options

You must be logged in to vote

No, you shouldn't call H5*close. Doing so would almost certainly result in an error.

HighFive works directly on the identifiers and decreases the reference count through H5Idec_ref (eventually to zero). Looking a some of the implementations of H5*close we see that apart from error checking they only call H5I_dec_app_ref (which is the only function called by H5Idef_ref). This suggests that decreasing the reference count is sufficient to trigger deallocation of the associated object.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kpolitis-msim
Comment options

Answer selected by kpolitis-msim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants