summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-05-19 04:58:59 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-05-19 04:58:59 (GMT)
commit52d71bcd6f19c7b0adb6544f4c79df94eb1135e4 (patch)
treecc7b05a2d59865db11f02f409ffeadb52cb2afd1 /src/H5A.c
parenteff3014d975a3118360fa38660af910af804cdcd (diff)
downloadhdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.zip
hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.tar.gz
hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.tar.bz2
[svn-r13770] Description:
Clean up various memory leaks, etc. Tested on: FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 8a74720..9584f0b 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -2095,6 +2095,8 @@ H5A_free(H5A_t *attr)
HGOTO_ERROR(H5E_ATTR, H5E_CANTRELEASE, FAIL, "can't release dataspace info")
if(attr->data)
attr->data = H5FL_BLK_FREE(attr_buf, attr->data);
+ if(H5G_name_free(&(attr->path)) < 0)
+ HGOTO_ERROR(H5E_ATTR, H5E_CANTRELEASE, FAIL, "can't release group hier. path")
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -2147,10 +2149,6 @@ H5A_close(H5A_t *attr)
if(H5O_close(&(attr->oloc)) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTRELEASE, FAIL, "can't release object header info")
- /* Release the group hier. path for the object the attribute is on */
- if(H5G_name_free(&(attr->path)) < 0)
- HGOTO_ERROR(H5E_ATTR, H5E_CANTRELEASE, FAIL, "can't release group hier. path")
-
H5FL_FREE(H5A_t, attr);
done: