From 58d14b196b9aef988a6593a01a445e62d92ad636 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Wed, 23 May 2012 09:47:59 -0500 Subject: [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. --- test/dtypes.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v0.12