diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-09-30 18:25:14 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-09-30 18:25:14 (GMT) |
commit | cdb4e39a1390c666cb634a17b004abe9a492b0c2 (patch) | |
tree | 98c9675a8a1734e134d23ce874849cff69657206 /hl/src | |
parent | 35ef86357383b1ba8b2243ac7d4dd9b5fe552dd6 (diff) | |
download | hdf5-cdb4e39a1390c666cb634a17b004abe9a492b0c2.zip hdf5-cdb4e39a1390c666cb634a17b004abe9a492b0c2.tar.gz hdf5-cdb4e39a1390c666cb634a17b004abe9a492b0c2.tar.bz2 |
[svn-r15731] #1307
A space id was not closed in H5PTopen
Tested: windows, linux
Diffstat (limited to 'hl/src')
-rw-r--r-- | hl/src/H5PT.c | 3 |
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); |