diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/src/misc/h5debug.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/src/misc/h5debug.c b/tools/src/misc/h5debug.c index 31ee131..372ccb5 100644 --- a/tools/src/misc/h5debug.c +++ b/tools/src/misc/h5debug.c @@ -816,8 +816,12 @@ main(int argc, char *argv[]) done: if (fapl > 0) H5Pclose(fapl); - if (fid > 0) - H5Fclose(fid); + if (fid > 0) { + if (H5Fclose(fid) < 0) { + HDfprintf(stderr, "Error in closing file!\n"); + exit_value = 1; + } + } /* Pop API context */ if (api_ctx_pushed) |