summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2019-11-29 05:07:33 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2019-12-06 22:32:11 (GMT)
commit209a86de37497b160ff49b9956f58558194eee25 (patch)
treed8c7dd8f94ea75684cbc9984393a7eecac48b04c
parenta5091c0013967e7d0ac3cf0426f87c53a8876445 (diff)
downloadhdf5-209a86de37497b160ff49b9956f58558194eee25.zip
hdf5-209a86de37497b160ff49b9956f58558194eee25.tar.gz
hdf5-209a86de37497b160ff49b9956f58558194eee25.tar.bz2
Fix missing free in H5T__ref_mem_read()
-rw-r--r--src/H5Tref.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Tref.c b/src/H5Tref.c
index dfa3930..23548b3 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() */