summaryrefslogtreecommitdiffstats
path: root/src/H5Tref.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2019-11-29 05:07:33 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2019-11-29 05:07:33 (GMT)
commit40b2658b4b266b4dc65ec3db2897e0aaf54f8e42 (patch)
tree6efec4a9c90d7b5d4f81e689daa6f08163a2549f /src/H5Tref.c
parentece625e3b680aafb33b0ef4ec101792e20be4aac (diff)
downloadhdf5-40b2658b4b266b4dc65ec3db2897e0aaf54f8e42.zip
hdf5-40b2658b4b266b4dc65ec3db2897e0aaf54f8e42.tar.gz
hdf5-40b2658b4b266b4dc65ec3db2897e0aaf54f8e42.tar.bz2
Fix missing free in H5T__ref_mem_read()
Diffstat (limited to 'src/H5Tref.c')
-rw-r--r--src/H5Tref.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Tref.c b/src/H5Tref.c
index 886891c..5c72489 100644
--- a/src/H5Tref.c
+++ b/src/H5Tref.c
@@ -425,6 +425,8 @@ H5T__ref_mem_read(H5VL_object_t H5_ATTR_UNUSED *src_file, const void *src_buf,
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTENCODE, FAIL, "Cannot encode reference")
done:
+ H5MM_xfree(file_name_buf_dyn);
+
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5T__ref_mem_read() */