diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2012-05-23 14:47:59 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2012-05-23 14:47:59 (GMT) |
commit | 58d14b196b9aef988a6593a01a445e62d92ad636 (patch) | |
tree | 8fb0362bd3d93d8ae866d8168a916539e52e0d13 | |
parent | 1fd36c6a348a8ceda0145fb7999b1bc069b7ac70 (diff) | |
download | hdf5-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.
-rw-r--r-- | test/dtypes.c | 5 |
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; |