summaryrefslogtreecommitdiffstats
path: root/src/H5Tref.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2019-11-29 05:07:33 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:17 (GMT)
commitfc34a593a7d25c8dfe1212d49d8cfec2c1fb0022 (patch)
tree46ee1972e60ea1eef5c4049e1f99f0464be9889d /src/H5Tref.c
parent175a14466cbfb1adf4da0b2e7b539705ab654161 (diff)
downloadhdf5-fc34a593a7d25c8dfe1212d49d8cfec2c1fb0022.zip
hdf5-fc34a593a7d25c8dfe1212d49d8cfec2c1fb0022.tar.gz
hdf5-fc34a593a7d25c8dfe1212d49d8cfec2c1fb0022.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 f1b0420..6f21363 100644
--- a/src/H5Tref.c
+++ b/src/H5Tref.c
@@ -490,6 +490,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() */