summaryrefslogtreecommitdiffstats
path: root/src/H5Oattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Oattr.c')
-rw-r--r--src/H5Oattr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/H5Oattr.c b/src/H5Oattr.c
index c913952..35f02a8 100644
--- a/src/H5Oattr.c
+++ b/src/H5Oattr.c
@@ -234,7 +234,7 @@ H5O_attr_decode(H5F_t *f, hid_t dxpl_id, H5O_t *open_oh, unsigned UNUSED mesg_fl
ret_value = attr;
done:
- if(NULL == ret_value) {
+ if(NULL == ret_value)
if(attr) {
if(attr->shared) {
/* Free any dynamicly allocated items */
@@ -244,10 +244,9 @@ done:
/* Destroy shared attribute struct */
attr->shared = H5FL_FREE(H5A_shared_t, attr->shared);
} /* end if */
- } /* end if */
- attr = H5FL_FREE(H5A_t, attr);
- } /* end if */
+ attr = H5FL_FREE(H5A_t, attr);
+ } /* end if */
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5O_attr_decode() */