summaryrefslogtreecommitdiffstats
path: root/src/H5Dcompact.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Dcompact.c')
-rw-r--r--src/H5Dcompact.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Dcompact.c b/src/H5Dcompact.c
index 2ffeb1e..2764f2d 100644
--- a/src/H5Dcompact.c
+++ b/src/H5Dcompact.c
@@ -492,6 +492,7 @@ H5D_compact_copy_conv(const H5D_t *dset_src, const H5D_t *dset_dst,
/* Copy the data from the conversion buffer to the destination */
dset_dst->shared->layout.u.compact.size = total_dst_nbytes;
+ H5MM_xfree(dset_dst->shared->layout.u.compact.buf);
dset_dst->shared->layout.u.compact.buf = (void*)H5MM_malloc((size_t)total_dst_nbytes);
HDmemcpy(dset_dst->shared->layout.u.compact.buf, buf, (size_t)total_dst_nbytes);