From 6b1a755771b363307cfcfd62e7d2992a430b6e77 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Wed, 4 Sep 2024 11:54:12 -0600 Subject: [PATCH] Integrating fix suggested by jhendersonHDF in support of https://github.com/Unidata/netcdf-c/issues/2990 --- libhdf5/H5FDhttp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhdf5/H5FDhttp.c b/libhdf5/H5FDhttp.c index d48aeb8c3e..917c73a114 100644 --- a/libhdf5/H5FDhttp.c +++ b/libhdf5/H5FDhttp.c @@ -257,7 +257,7 @@ EXTERNL hid_t H5FD_http_finalize(void) { /* Reset VFL ID */ - if (H5FD_HTTP_g) + if (H5FD_HTTP_g && (H5Iis_valid(H5FD_HTTP_g) > 0)) H5FDunregister(H5FD_HTTP_g); H5FD_HTTP_g = 0;