summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2012-05-23 14:47:59 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2012-05-23 14:47:59 (GMT)
commit58d14b196b9aef988a6593a01a445e62d92ad636 (patch)
tree8fb0362bd3d93d8ae866d8168a916539e52e0d13 /test
parent1fd36c6a348a8ceda0145fb7999b1bc069b7ac70 (diff)
downloadhdf5-58d14b196b9aef988a6593a01a445e62d92ad636.zip
hdf5-58d14b196b9aef988a6593a01a445e62d92ad636.tar.gz
hdf5-58d14b196b9aef988a6593a01a445e62d92ad636.tar.bz2
[svn-r22394] I forgot to close a few datatypes in test_str_create. I fixed them in this commit.
Tested on jam - very simple change.
Diffstat (limited to 'test')
-rw-r--r--test/dtypes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index f1ff4ea..17349b9 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -3965,6 +3965,9 @@ test_str_create(void)
if((query_size = H5Tget_size(fixed_str2)) == 0) goto error;
if(query_size != str_size) goto error;
+ if(H5Tclose(fixed_str1) < 0) goto error;
+ if(H5Tclose(fixed_str2) < 0) goto error;
+
/* Create variable-length string in two ways and make sure they are the same */
if((vlen_str1 = mkstr((size_t)H5T_VARIABLE, H5T_STR_NULLTERM)) < 0) goto error;
@@ -3979,6 +3982,8 @@ test_str_create(void)
if((is_vl_str = H5Tis_variable_str(vlen_str2)) < 0) goto error;
if(!is_vl_str) goto error;
+ if(H5Tclose(vlen_str1) < 0) goto error;
+ if(H5Tclose(vlen_str2) < 0) goto error;
PASSED();
return 0;