summaryrefslogtreecommitdiffstats
path: root/src/H5Ocopy.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2022-02-18 15:28:21 (GMT)
committerGitHub <noreply@github.com>2022-02-18 15:28:21 (GMT)
commit42c419e2661f67a80cef445084d28ac25572244e (patch)
treebd256664cb1a698e092732173aaef53ae67b1a30 /src/H5Ocopy.c
parentfeda52b08488dbb3e5b2450f6cd63baa98b0e57e (diff)
downloadhdf5-42c419e2661f67a80cef445084d28ac25572244e.zip
hdf5-42c419e2661f67a80cef445084d28ac25572244e.tar.gz
hdf5-42c419e2661f67a80cef445084d28ac25572244e.tar.bz2
Fix issue with copying null new references (#1440)
* Fix issue with copying null new references. Fix assertion failure when reference copying fails. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5Ocopy.c')
-rw-r--r--src/H5Ocopy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ocopy.c b/src/H5Ocopy.c
index 05dfc72..52b1b5c 100644
--- a/src/H5Ocopy.c
+++ b/src/H5Ocopy.c
@@ -772,7 +772,7 @@ done:
/* Free destination object header on failure */
if (ret_value < 0) {
if (oh_dst && !inserted) {
- if (H5O__free(oh_dst) < 0)
+ if (H5O__free(oh_dst, TRUE) < 0)
HDONE_ERROR(H5E_OHDR, H5E_CANTFREE, FAIL, "unable to destroy object header data")
if (H5O_loc_reset(oloc_dst) < 0)
HDONE_ERROR(H5E_OHDR, H5E_CANTFREE, FAIL, "unable to destroy object header data")