summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-25 21:07:17 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-25 21:07:17 (GMT)
commit261ec9bae41f59b4a78d93823e7f658b51a30939 (patch)
tree8c4326b8614d7232e10516d3be3770439dd95e28
parent9d743f078ef17105c8490e4cd21dce65bbb6af75 (diff)
downloadhdf5-261ec9bae41f59b4a78d93823e7f658b51a30939.zip
hdf5-261ec9bae41f59b4a78d93823e7f658b51a30939.tar.gz
hdf5-261ec9bae41f59b4a78d93823e7f658b51a30939.tar.bz2
[svn-r29801] Purpose: Fix memory leak - HDFFV-9700
Description: Applied user's patch to fix memory leak. Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
-rw-r--r--hl/src/H5PT.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/hl/src/H5PT.c b/hl/src/H5PT.c
index e2d6a3d..5376086 100644
--- a/hl/src/H5PT.c
+++ b/hl/src/H5PT.c
@@ -141,10 +141,7 @@ hid_t H5PTcreate(hid_t loc_id,
if(H5Pclose(plistcopy_id) < 0)
goto error;
- if((table->type_id = H5Tcopy(dtype_id)) < 0)
- goto error;
-
- if((table->type_id = H5Tget_native_type(table->type_id, H5T_DIR_DEFAULT)) < 0)
+ if((table->type_id = H5Tget_native_type(dtype_id, H5T_DIR_DEFAULT)) < 0)
goto error;
H5PT_create_index(table);
@@ -262,10 +259,7 @@ hid_t H5PTcreate_fl ( hid_t loc_id,
if(H5Pclose(plist_id) < 0)
goto error;
- if((table->type_id = H5Tcopy(dtype_id)) < 0)
- goto error;
-
- if((table->type_id = H5Tget_native_type(table->type_id, H5T_DIR_DEFAULT)) < 0)
+ if((table->type_id = H5Tget_native_type(dtype_id, H5T_DIR_DEFAULT)) < 0)
goto error;
H5PT_create_index(table);