Skip to content

Commit

Permalink
switch to testing the state of info for calling H5VLclose
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Oct 14, 2024
1 parent 250be3c commit 569adde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/H5VL_log_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void *H5VL_log_file_create (
H5VL_LOGI_PROFILING_TIMER_STOP (fp, TIMER_H5VLFILE_CREATE);
H5VL_LOGI_PROFILING_TIMER_STOP (fp, TIMER_H5VL_LOG_FILE_CREATE_FILE);
H5VL_LOGI_PROFILING_TIMER_STOP (fp, TIMER_H5VL_LOG_FILE_CREATE);
if (under_vol_info == NULL) {
if (!info) {
err = H5VLclose(uvlid);
CHECK_ERR
}
Expand Down Expand Up @@ -309,7 +309,7 @@ void *H5VL_log_file_open (

H5VL_LOGI_PROFILING_TIMER_STOP (fp, TIMER_H5VL_LOG_FILE_OPEN);

if (under_vol_info == NULL) {
if (!info) {
err = H5VLclose(uvlid);
CHECK_ERR
}
Expand Down Expand Up @@ -450,7 +450,7 @@ herr_t H5VL_log_file_specific (void *file,
err = H5VLfile_specific (NULL, uvlid, args, dxpl_id, req);
CHECK_ERR
H5Pclose (under_fapl_id);
if (under_vol_info == NULL) {
if (!info) {
err = H5VLclose(uvlid);
CHECK_ERR
}
Expand Down

0 comments on commit 569adde

Please sign in to comment.