summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-25 21:05:37 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-25 21:05:37 (GMT)
commitcedc64c69564c18a3a6fdcb405efc98bc5cea7e5 (patch)
tree4c54ddabf1f16917f4354a5315c6ffa44f7cb8bd /hl
parent853b4f417b65979b699a27f8273ed23b60cf70bd (diff)
downloadhdf5-cedc64c69564c18a3a6fdcb405efc98bc5cea7e5.zip
hdf5-cedc64c69564c18a3a6fdcb405efc98bc5cea7e5.tar.gz
hdf5-cedc64c69564c18a3a6fdcb405efc98bc5cea7e5.tar.bz2
[svn-r29800] 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)
Diffstat (limited to 'hl')
-rw-r--r--hl/src/H5PT.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hl/src/H5PT.c b/hl/src/H5PT.c
index e2d6a3d..647cbe8 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);