summaryrefslogtreecommitdiffstats
path: root/src/H5Rdeprec.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/H5Rdeprec.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/H5Rdeprec.c')
-rw-r--r--src/H5Rdeprec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5Rdeprec.c b/src/H5Rdeprec.c
index b3838f1..5fb6813 100644
--- a/src/H5Rdeprec.c
+++ b/src/H5Rdeprec.c
@@ -204,6 +204,11 @@ H5Rdereference1(hid_t obj_id, H5R_type_t ref_type, const void *_ref)
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to open object")
done:
+ if (NULL != location) {
+ /* free the location token through the VOL */
+ if(H5VL_object_free_loc (obj_id, location, H5_REQUEST_NULL) < 0)
+ HGOTO_ERROR(H5E_SYM, H5E_CANTRELEASE, FAIL, "unable to free location token")
+ }
FUNC_LEAVE_API(ret_value)
} /* end H5Rdereference1() */