mirror of git://sourceware.org/git/glibc.git
* sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
cleanup for initial thread, just the free call on TVP.
This commit is contained in:
parent
3f87d90102
commit
ca4fce0e1e
|
|
@ -1,5 +1,8 @@
|
||||||
2006-05-04 Ulrich Drepper <drepper@redhat.com>
|
2006-05-04 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
|
||||||
|
cleanup for initial thread, just the free call on TVP.
|
||||||
|
|
||||||
* nscd/gai.c (__getline): Define.
|
* nscd/gai.c (__getline): Define.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ __rpc_thread_destroy (void)
|
||||||
{
|
{
|
||||||
struct rpc_thread_variables *tvp = __libc_tsd_get (RPC_VARS);
|
struct rpc_thread_variables *tvp = __libc_tsd_get (RPC_VARS);
|
||||||
|
|
||||||
if (tvp != NULL && tvp != &__libc_tsd_RPC_VARS_mem) {
|
if (tvp != NULL) {
|
||||||
__rpc_thread_svc_cleanup ();
|
__rpc_thread_svc_cleanup ();
|
||||||
__rpc_thread_clnt_cleanup ();
|
__rpc_thread_clnt_cleanup ();
|
||||||
__rpc_thread_key_cleanup ();
|
__rpc_thread_key_cleanup ();
|
||||||
|
|
@ -29,6 +29,7 @@ __rpc_thread_destroy (void)
|
||||||
free (tvp->svcraw_private_s);
|
free (tvp->svcraw_private_s);
|
||||||
free (tvp->authdes_cache_s);
|
free (tvp->authdes_cache_s);
|
||||||
free (tvp->authdes_lru_s);
|
free (tvp->authdes_lru_s);
|
||||||
|
if (tvp != &__libc_tsd_RPC_VARS_mem)
|
||||||
free (tvp);
|
free (tvp);
|
||||||
__libc_tsd_set (RPC_VARS, NULL);
|
__libc_tsd_set (RPC_VARS, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue