diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-06-11 21:14:13 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-06-11 21:14:13 (GMT) |
commit | 0cf52525d5b45cc7cf6f89267da76b46ffa75f90 (patch) | |
tree | ecf3b5ab202b73ffdc4d638e572bbeecf3f4f52b /src/H5Oattr.c | |
parent | 3fd4f270fd109db57f426928486bedc78c8137ae (diff) | |
download | hdf5-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/H5Oattr.c')
-rw-r--r-- | src/H5Oattr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Oattr.c b/src/H5Oattr.c index 653c23a..f685a00c 100644 --- a/src/H5Oattr.c +++ b/src/H5Oattr.c @@ -254,8 +254,9 @@ done: if(NULL == ret_value) if(attr) { /* Free any dynamically allocated items */ - if(H5A__free(attr) < 0) - HDONE_ERROR(H5E_ATTR, H5E_CANTRELEASE, NULL, "can't release attribute info") + if(attr->shared) + if(H5A__shared_free(attr) < 0) + HDONE_ERROR(H5E_ATTR, H5E_CANTRELEASE, NULL, "can't release attribute info") attr = H5FL_FREE(H5A_t, attr); } /* end if */ |