summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-30 18:44:02 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-30 18:44:02 (GMT)
commit915ed3269683d30045d4c06b85ec76c792bcf4ac (patch)
tree5d2add8e42e8b89b390a8a5052ffba7e962a2568 /hl
parentad6c6761a42df88b13e8f0947afe36b4ddd02d9f (diff)
downloadhdf5-915ed3269683d30045d4c06b85ec76c792bcf4ac.zip
hdf5-915ed3269683d30045d4c06b85ec76c792bcf4ac.tar.gz
hdf5-915ed3269683d30045d4c06b85ec76c792bcf4ac.tar.bz2
[svn-r15733] #1307
A space id was not closed in H5PTopen Tested: windows, linux
Diffstat (limited to 'hl')
-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);