summaryrefslogtreecommitdiffstats
path: root/src/H5VLdyn_ops.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2022-05-05 20:32:49 (GMT)
committerGitHub <noreply@github.com>2022-05-05 20:32:49 (GMT)
commitcdf837d0a16acd657e53057d19b4b21763eeca45 (patch)
treeff1620fa02003742a02bcbb3caf88e1c1789a975 /src/H5VLdyn_ops.c
parentc4cd250408c7f973c909a56c3cae18ed6a0118f2 (diff)
downloadhdf5-cdf837d0a16acd657e53057d19b4b21763eeca45.zip
hdf5-cdf837d0a16acd657e53057d19b4b21763eeca45.tar.gz
hdf5-cdf837d0a16acd657e53057d19b4b21763eeca45.tar.bz2
Fix a few Clang sanitizer warnings (#1727)
Diffstat (limited to 'src/H5VLdyn_ops.c')
-rw-r--r--src/H5VLdyn_ops.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5VLdyn_ops.c b/src/H5VLdyn_ops.c
index e175246..7889224 100644
--- a/src/H5VLdyn_ops.c
+++ b/src/H5VLdyn_ops.c
@@ -166,9 +166,12 @@ H5VL__term_opt_operation(void)
FUNC_ENTER_PACKAGE_NOERR
/* Iterate over the VOL subclasses */
- for (subcls = 0; subcls < NELMTS(H5VL_opt_vals_g); subcls++)
- if (H5VL_opt_ops_g[subcls])
+ for (subcls = 0; subcls < NELMTS(H5VL_opt_vals_g); subcls++) {
+ if (H5VL_opt_ops_g[subcls]) {
H5SL_destroy(H5VL_opt_ops_g[subcls], H5VL__term_opt_operation_cb, NULL);
+ H5VL_opt_ops_g[subcls] = NULL;
+ }
+ }
FUNC_LEAVE_NOAPI(SUCCEED)
} /* H5VL__term_opt_operation() */