about summary refs log tree commit diff
path: root/elf/dl-fini.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-fini.c')
-rw-r--r--elf/dl-fini.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/dl-fini.c b/elf/dl-fini.c
index 4e2e66e841..e7a00e513e 100644
--- a/elf/dl-fini.c
+++ b/elf/dl-fini.c
@@ -169,6 +169,9 @@ _dl_fini (void)
 	  if (l->l_info[DT_FINI] != NULL)
 	    ((fini_t) DL_DT_FINI_ADDRESS (l, l->l_addr + l->l_info[DT_FINI]->d_un.d_ptr)) ();
 	}
+
+      /* Correct the previous increment.  */
+      --l->l_opencount;
     }
 
   if (__builtin_expect (GL(dl_debug_mask) & DL_DEBUG_STATISTICS, 0))