From 915ed3269683d30045d4c06b85ec76c792bcf4ac Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Tue, 30 Sep 2008 13:44:02 -0500 Subject: [svn-r15733] #1307 A space id was not closed in H5PTopen Tested: windows, linux --- hl/src/H5PT.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v0.12