From 16f8ef7ef083814a086d0aaa176e55d3bf7c1bb2 Mon Sep 17 00:00:00 2001 From: James Laird Date: Wed, 1 Nov 2006 13:42:32 -0500 Subject: [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). --- hl/src/H5PT.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v0.12