From edd1c3a24bbac0e9e6842e08490cce47b06a1475 Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Tue, 14 Nov 2023 16:54:02 -0600 Subject: [PATCH] Avoid infinite loop in done error --- src/rest_vol_attr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rest_vol_attr.c b/src/rest_vol_attr.c index ea2101e1..4e2a3cec 100644 --- a/src/rest_vol_attr.c +++ b/src/rest_vol_attr.c @@ -2887,20 +2887,20 @@ RV_attr_specific(void *obj, const H5VL_loc_params_t *loc_params, H5VL_attr_speci case H5I_FILE: case H5I_GROUP: if (RV_group_close((void *)attr_parent, H5P_DEFAULT, NULL) < 0) - FUNC_GOTO_ERROR(H5E_SYM, H5E_CANTCLOSEOBJ, FAIL, "can't close parent group"); + FUNC_DONE_ERROR(H5E_SYM, H5E_CANTCLOSEOBJ, FAIL, "can't close parent group"); break; case H5I_DATASET: if (RV_dataset_close((void *)attr_parent, H5P_DEFAULT, NULL) < 0) - FUNC_GOTO_ERROR(H5E_DATASET, H5E_CANTCLOSEOBJ, FAIL, "can't close parent dataset"); + FUNC_DONE_ERROR(H5E_DATASET, H5E_CANTCLOSEOBJ, FAIL, "can't close parent dataset"); break; case H5I_DATATYPE: if (RV_datatype_close((void *)attr_parent, H5P_DEFAULT, NULL) < 0) - FUNC_GOTO_ERROR(H5E_DATATYPE, H5E_CANTCLOSEOBJ, FAIL, "can't close parent datatype"); + FUNC_DONE_ERROR(H5E_DATATYPE, H5E_CANTCLOSEOBJ, FAIL, "can't close parent datatype"); default: - FUNC_GOTO_ERROR(H5E_ATTR, H5E_BADVALUE, FAIL, + FUNC_DONE_ERROR(H5E_ATTR, H5E_BADVALUE, FAIL, "attribute's parent object is not group, dataset, or datatype"); break; }