summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-30 18:25:14 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-30 18:25:14 (GMT)
commitcdb4e39a1390c666cb634a17b004abe9a492b0c2 (patch)
tree98c9675a8a1734e134d23ce874849cff69657206
parent35ef86357383b1ba8b2243ac7d4dd9b5fe552dd6 (diff)
downloadhdf5-cdb4e39a1390c666cb634a17b004abe9a492b0c2.zip
hdf5-cdb4e39a1390c666cb634a17b004abe9a492b0c2.tar.gz
hdf5-cdb4e39a1390c666cb634a17b004abe9a492b0c2.tar.bz2
[svn-r15731] #1307
A space id was not closed in H5PTopen Tested: windows, linux
-rw-r--r--hl/src/H5PT.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hl/src/H5PT.c b/hl/src/H5PT.c
index f337360..af6533e 100644
--- a/hl/src/H5PT.c
+++ b/hl/src/H5PT.c
@@ -258,6 +258,8 @@ hid_t H5PTopen( hid_t loc_id,
goto out;
if( H5Sget_simple_extent_dims( space_id, dims, NULL) < 0)
goto out;
+ if(H5Sclose(space_id) < 0)
+ goto out;
table->size = dims[0];
/* Get an ID for this table */
@@ -273,6 +275,7 @@ hid_t H5PTopen( hid_t loc_id,
out:
H5E_BEGIN_TRY
H5Tclose(type_id);
+ H5Sclose(space_id);
if(table)
{
H5Dclose(table->dset_id);