diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2012-05-23 14:42:43 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2012-05-23 14:42:43 (GMT) |
commit | 955b84369e870d14b922d97d3725a8b11778152d (patch) | |
tree | 61d5f965221b8717ab24eb26c37c066d67f16e23 | |
parent | 24810fd2165dba146c570d583b3c7c3939be0880 (diff) | |
download | hdf5-955b84369e870d14b922d97d3725a8b11778152d.zip hdf5-955b84369e870d14b922d97d3725a8b11778152d.tar.gz hdf5-955b84369e870d14b922d97d3725a8b11778152d.tar.bz2 |
[svn-r22393] 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 23a7bac..3db9bf8 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -3964,6 +3964,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; @@ -3978,6 +3981,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; |