generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
There are two return statements in Formulation_Manager::get_forcing_params that don't call closedir before exiting the function. closedir should probably be called after the forcing object is created and before returning or an RAII object should be created to wrap the directory object to ensure it is always closed when exiting scope.
Failing to address this may result in file handle leaks.
NOTE: I'm obviously not the C++ expert here, so this can probably be closed outright if there's something non-obvious that performs the clean up. If that's the case, though, a nice comment may be helpful.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers