Skip to content

Fix: fclose call with nullptr#357

Merged
KIwabuchi merged 2 commits intollnl:developfrom
dice-group:fix/fclose-on-nullptr
Jul 10, 2025
Merged

Fix: fclose call with nullptr#357
KIwabuchi merged 2 commits intollnl:developfrom
dice-group:fix/fclose-on-nullptr

Conversation

@liss-h
Copy link
Contributor

@liss-h liss-h commented Jul 9, 2025

Tiny fix:

  • Calling fclose with nullptr is UB.
  • And create_file potentially leaked a fd if an fsync call failed

@KIwabuchi
Copy link
Member

@liss-h Nice catch! Thanks!

@KIwabuchi KIwabuchi merged commit 9bcf71c into llnl:develop Jul 10, 2025
2 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.

2 participants

Comments