summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-05-18 21:43:25 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-05-18 21:43:25 (GMT)
commit748b630b2b0451f7305918d25244e5a5fddc1f11 (patch)
tree13ec0181f9807b042b385c708dd0fbb78f3aa5d9 /src/H5G.c
parentdc1343a0d3300ae537adbdc4c0b8f342f37e09e4 (diff)
downloadhdf5-748b630b2b0451f7305918d25244e5a5fddc1f11.zip
hdf5-748b630b2b0451f7305918d25244e5a5fddc1f11.tar.gz
hdf5-748b630b2b0451f7305918d25244e5a5fddc1f11.tar.bz2
[svn-r22381] add a VL free location callback and use it as appropriate
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 0e91191..e9211ec 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -536,8 +536,9 @@ H5Gget_info_by_name(hid_t loc_id, const char *name, H5G_info_t *grp_info,
done:
if (NULL != location) {
- free (location);
- location = NULL;
+ /* free the location token through the VOL */
+ if(H5VL_object_free_loc (loc_id, location, H5_REQUEST_NULL) < 0)
+ HGOTO_ERROR(H5E_SYM, H5E_CANTRELEASE, FAIL, "unable to free location token")
}
FUNC_LEAVE_API(ret_value)
} /* end H5Gget_info_by_name() */
@@ -595,8 +596,9 @@ H5Gget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type,
done:
if (NULL != location) {
- free (location);
- location = NULL;
+ /* free the location token through the VOL */
+ if(H5VL_object_free_loc (loc_id, location, H5_REQUEST_NULL) < 0)
+ HGOTO_ERROR(H5E_SYM, H5E_CANTRELEASE, FAIL, "unable to free location token")
}
FUNC_LEAVE_API(ret_value)
} /* end H5Gget_info_by_idx() */