From c7709dbb33dd9def8661ef53e68f5d6fb2c4ed98 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 6 Nov 2002 01:58:35 +0000 Subject: (do_release_all): Call __libc_dlclose as many times as we opened the module. --- iconv/gconv_dl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'iconv/gconv_dl.c') diff --git a/iconv/gconv_dl.c b/iconv/gconv_dl.c index cc7627aba2..0bf6129e73 100644 --- a/iconv/gconv_dl.c +++ b/iconv/gconv_dl.c @@ -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); } -- cgit v1.2.3