summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-05-18 20:44:39 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-05-18 20:44:39 (GMT)
commitdc1343a0d3300ae537adbdc4c0b8f342f37e09e4 (patch)
treea0565f0d40a8e8dd1e4d7efc75e7079fd5452a60 /src/H5A.c
parent364471d19e935bed37e18ce78f3ceaf65cd50f29 (diff)
downloadhdf5-dc1343a0d3300ae537adbdc4c0b8f342f37e09e4.zip
hdf5-dc1343a0d3300ae537adbdc4c0b8f342f37e09e4.tar.gz
hdf5-dc1343a0d3300ae537adbdc4c0b8f342f37e09e4.tar.bz2
[svn-r22380] - attribute and object exist callbacks should be part of get structs
- fix bug in passing req parameter - free location in H5Rdereference - add datatype close callback - H5VL_CREATE_LINK_XXX should be H5VL_LINK_CREATE_XXX
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 6cc3682..3017e7f 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -251,6 +251,10 @@ H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id,
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to create attribute")
done:
+ if (NULL != location) {
+ free (location);
+ location = NULL;
+ }
FUNC_LEAVE_API(ret_value)
} /* H5Acreate2() */
@@ -2576,7 +2580,7 @@ H5Aexists(hid_t obj_id, const char *attr_name)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no attribute name")
/* get the attribute info through the VOL */
- if(H5VL_object_generic(obj_id, H5VL_ATTR_EXISTS, H5_REQUEST_NULL, attr_name, NULL, &ret_value) < 0)
+ if(H5VL_attr_get(obj_id, H5VL_ATTR_EXISTS, H5_REQUEST_NULL, attr_name, NULL, &ret_value) < 0)
HGOTO_ERROR(H5E_INTERNAL, H5E_CANTGET, FAIL, "unable to get attribute info")
done:
@@ -2625,7 +2629,7 @@ H5Aexists_by_name(hid_t loc_id, const char *obj_name, const char *attr_name,
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to locate object")
/* get the attribute info through the VOL */
- if(H5VL_object_generic(loc_id, H5VL_ATTR_EXISTS, H5_REQUEST_NULL, attr_name, location, &ret_value) < 0)
+ if(H5VL_attr_get(loc_id, H5VL_ATTR_EXISTS, H5_REQUEST_NULL, attr_name, location, &ret_value) < 0)
HGOTO_ERROR(H5E_INTERNAL, H5E_CANTGET, FAIL, "unable to get attribute info")
done: