summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5.c b/src/H5.c
index e84aebf..72ea2a8 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -237,7 +237,9 @@ H5_term_library(void)
pending += DOWN(Z);
pending += DOWN(FD);
pending += DOWN(P);
- pending += DOWN(I);
+ /* Don't shut down the ID code until other APIs which use them are shut down */
+ if(pending==0)
+ pending += DOWN(I);
/* Don't shut down the free list code until _everything_ else is down */
if(pending==0)
pending += DOWN(FL);