Skip to content

Remove double close in pmd_open_series - #28

Merged
electronsandstuff merged 4 commits into
masterfrom
pierce/double-close
Sep 17, 2026
Merged

electronsandstuff merged 4 commits into
masterfrom
pierce/double-close

Conversation

@electronsandstuff

Copy link
Copy Markdown
Owner

Resolve issue #21

This PR addresses the HDF5 double close which can happen in pmd_open_series when opening a file-based series through a non-patterned file name. read_series_metadata_from_file closes the HDF5 file on its own. This PR changes it so that file handle lifetime is managed only by pmd_open_series.

Combine the file handle ownership fix with the padding detection from
master: the non-pattern open now records the padding source file and
then hands the handle to the series or closes it, and the pattern branch
rejects a group-based match before its single close.
@electronsandstuff
electronsandstuff merged commit f11bcd7 into master Sep 17, 2026
3 checks passed
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