summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5Tf.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-10-09 21:45:46 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-10-09 21:45:46 (GMT)
commit59c79aec2caa0fd590e6410cfa8bb55850f558c1 (patch)
tree9fb4b414367336a1b81361c26e8b08005ce99d11 /fortran/src/H5Tf.c
parentcfe6d9a8da37bd7af03d976fce6ac77994bb79b3 (diff)
downloadhdf5-59c79aec2caa0fd590e6410cfa8bb55850f558c1.zip
hdf5-59c79aec2caa0fd590e6410cfa8bb55850f558c1.tar.gz
hdf5-59c79aec2caa0fd590e6410cfa8bb55850f558c1.tar.bz2
[svn-r28020] Freed allocated memory in h5tenum_insert_ptr_c, valgrind fix.
Diffstat (limited to 'fortran/src/H5Tf.c')
-rw-r--r--fortran/src/H5Tf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fortran/src/H5Tf.c b/fortran/src/H5Tf.c
index b6389258..9928d0a 100644
--- a/fortran/src/H5Tf.c
+++ b/fortran/src/H5Tf.c
@@ -2421,7 +2421,10 @@ h5tenum_insert_ptr_c(hid_t_f *type_id, _fcd name, int_f* namelen, void *value)
if (c_name == NULL) return ret_value;
status = H5Tenum_insert( (hid_t)*type_id, c_name, value);
+
+ HDfree(c_name);
if ( status < 0 ) return ret_value;
+
ret_value = 0;
return ret_value;
}