diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/h5_group.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/h5_group.c b/examples/h5_group.c index 7afe19b..870f34f 100644 --- a/examples/h5_group.c +++ b/examples/h5_group.c @@ -93,6 +93,7 @@ main(void) H5Sclose(dataspace); H5Dclose(dataset); H5Pclose(plist); + H5Gclose(grp); H5Fclose(file); /* @@ -158,7 +159,8 @@ main(void) * Close the file. */ - status = H5Fclose(file); + H5Gclose(grp); + H5Fclose(file); return 0; } |