summaryrefslogtreecommitdiffstats
path: root/src/H5Adense.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-06-11 21:14:13 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-06-11 21:14:13 (GMT)
commit0cf52525d5b45cc7cf6f89267da76b46ffa75f90 (patch)
treeecf3b5ab202b73ffdc4d638e572bbeecf3f4f52b /src/H5Adense.c
parent3fd4f270fd109db57f426928486bedc78c8137ae (diff)
downloadhdf5-0cf52525d5b45cc7cf6f89267da76b46ffa75f90.zip
hdf5-0cf52525d5b45cc7cf6f89267da76b46ffa75f90.tar.gz
hdf5-0cf52525d5b45cc7cf6f89267da76b46ffa75f90.tar.bz2
H5A__free() was renamed to H5A__shared_free() and now requires
attr->shared to not be NULL.
Diffstat (limited to 'src/H5Adense.c')
-rw-r--r--src/H5Adense.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Adense.c b/src/H5Adense.c
index ceac7d9..bddfe31 100644
--- a/src/H5Adense.c
+++ b/src/H5Adense.c
@@ -327,8 +327,9 @@ H5A__dense_fnd_cb(const H5A_t *attr, hbool_t *took_ownership, void *_user_attr)
H5A_t *old_attr = *user_attr;
/* Free any dynamically allocated items */
- if(H5A__free(old_attr) < 0)
- HGOTO_ERROR(H5E_ATTR, H5E_CANTRELEASE, FAIL, "can't release attribute info")
+ if(old_attr->shared)
+ if(H5A__shared_free(old_attr) < 0)
+ HGOTO_ERROR(H5E_ATTR, H5E_CANTRELEASE, FAIL, "can't release attribute info")
old_attr = H5FL_FREE(H5A_t, old_attr);
} /* end if */