summaryrefslogtreecommitdiffstats
path: root/tools/src/misc/h5debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src/misc/h5debug.c')
-rw-r--r--tools/src/misc/h5debug.c8
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)