(do_release_all): Call __libc_dlclose as many times as we opened the module.
authordrepper <drepper>
Wed, 6 Nov 2002 01:58:35 +0000 (01:58 +0000)
committerdrepper <drepper>
Wed, 6 Nov 2002 01:58:35 +0000 (01:58 +0000)
iconv/gconv_dl.c

index cc7627a..0bf6129 100644 (file)
@@ -198,7 +198,9 @@ do_release_all (void *nodep)
 
   /* Unload the shared object.  */
   if (obj->handle != NULL)
-    __libc_dlclose (obj->handle);
+    do
+      __libc_dlclose (obj->handle);
+    while (--obj->counter > 0);
 
   free (obj);
 }