summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2021-02-20 14:11:24 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2021-02-20 14:11:24 (GMT)
commita544ef1441cc91f5d55d47deb13a0e90058825e5 (patch)
treed8ef3918808427bd4c0610d7047fc0301c6a9075 /tools/lib
parent8d4a9d589b816276f729ef2091cb7efb7e31f034 (diff)
parent9dc3ddaad57625ee7f15eab912b48bee7ed0f325 (diff)
downloadhdf5-a544ef1441cc91f5d55d47deb13a0e90058825e5.zip
hdf5-a544ef1441cc91f5d55d47deb13a0e90058825e5.tar.gz
hdf5-a544ef1441cc91f5d55d47deb13a0e90058825e5.tar.bz2
Merge branch 'hdf5_1_12' of https://github.com/HDFGroup/hdf5 into hdf5_1_12
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_dump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c
index 9edaba6..4546178 100644
--- a/tools/lib/h5tools_dump.c
+++ b/tools/lib/h5tools_dump.c
@@ -329,7 +329,7 @@ h5tools_dump_simple_data(FILE *stream, const h5tool_format_t *info, h5tools_cont
* Purpose: Print some values from an attribute referenced by object reference.
*
* Description:
- * This is a special case subfunction to dump aa attribute references.
+ * This is a special case subfunction to dump an attribute reference.
*
* Return:
* The function returns False if the last dimension has been reached, otherwise True
@@ -448,6 +448,9 @@ done:
if (H5Tclose(atype) < 0)
H5TOOLS_ERROR(dimension_break, "H5Tclose failed");
+ if (H5Sclose(region_space) < 0)
+ H5TOOLS_ERROR(dimension_break, "H5Sclose failed");
+
ctx->indent_level--;
ctx->need_prefix = TRUE;