about summary refs log tree commit diff
path: root/elf/dl-close.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r--elf/dl-close.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index 6bdedd1b80..cbbb2ae298 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -166,6 +166,7 @@ _dl_close (void *_map)
 	  else
 	    _dl_loaded = imap->l_next;
 #endif
+	  --_dl_nloaded;
 	  if (imap->l_next)
 	    imap->l_next->l_prev = imap->l_prev;