summaryrefslogtreecommitdiffstats
path: root/hl/src/H5PT.c
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2006-11-01 18:42:32 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2006-11-01 18:42:32 (GMT)
commit16f8ef7ef083814a086d0aaa176e55d3bf7c1bb2 (patch)
tree45cfee2554a9ab227f51677abd02ddb71d8eb358 /hl/src/H5PT.c
parent9e4f177ebae6cc4e9fd1b210f25ddf91408e3188 (diff)
downloadhdf5-16f8ef7ef083814a086d0aaa176e55d3bf7c1bb2.zip
hdf5-16f8ef7ef083814a086d0aaa176e55d3bf7c1bb2.tar.gz
hdf5-16f8ef7ef083814a086d0aaa176e55d3bf7c1bb2.tar.bz2
[svn-r12839] Cleaned up a resource leak when Packet Tables are opened.
Tested on juniper (will test on kagiso after check-in to make sure that nothing's broken).
Diffstat (limited to 'hl/src/H5PT.c')
-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 e6e106f..d1bb1fc 100644
--- a/hl/src/H5PT.c
+++ b/hl/src/H5PT.c
@@ -245,6 +245,9 @@ hid_t H5PTopen( hid_t loc_id,
if ((table->type_id = H5Tget_native_type(type_id, H5T_DIR_ASCEND)) < 0)
goto out;
+ if (H5Tclose(type_id) < 0)
+ goto out;
+
/* Initialize the current record pointer */
if((H5PT_create_index(table)) <0)
goto out;