summaryrefslogtreecommitdiffstats
path: root/hl/src/H5PT.c
diff options
context:
space:
mode:
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;