(do_release_all): Call __libc_dlclose as many times as we opened the module.

This commit is contained in:
Ulrich Drepper 2002-11-06 01:58:35 +00:00
parent e791bd95a5
commit c7709dbb33
1 changed files with 3 additions and 1 deletions

View 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);
}