summaryrefslogtreecommitdiffstats
path: root/src/H5I.c
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2019-08-14 19:41:14 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2019-08-14 19:46:39 (GMT)
commit7f5a5020c8ec882e6b7eceab878470003e2a8b63 (patch)
tree107d6a49588c1e6167c17433caa06e2876552123 /src/H5I.c
parent2b72832d97496290f74ccaffcda41c3e596f8f49 (diff)
downloadhdf5-7f5a5020c8ec882e6b7eceab878470003e2a8b63.zip
hdf5-7f5a5020c8ec882e6b7eceab878470003e2a8b63.tar.gz
hdf5-7f5a5020c8ec882e6b7eceab878470003e2a8b63.tar.bz2
Fix H5F_get_file_id and H5F__get_file_id to take app_ref parameter
Fix app_ref_count from being incremented when private routines are used
Diffstat (limited to 'src/H5I.c')
-rw-r--r--src/H5I.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5I.c b/src/H5I.c
index a2275de..ab68e38 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -2219,7 +2219,7 @@ H5Iget_file_id(hid_t obj_id)
/* Call internal function */
if (H5I_FILE == type || H5I_DATATYPE == type || H5I_GROUP == type || H5I_DATASET == type || H5I_ATTR == type) {
- if ((ret_value = H5F_get_file_id(obj_id, type)) < 0)
+ if ((ret_value = H5F_get_file_id(obj_id, type, TRUE)) < 0)
HGOTO_ERROR(H5E_ATOM, H5E_CANTGET, H5I_INVALID_HID, "can't retrieve file ID")
} /* end if */
else