mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
2.5-18.1
This commit is contained in:
@@ -20,7 +20,7 @@ __rpc_thread_destroy (void)
|
||||
{
|
||||
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_clnt_cleanup ();
|
||||
__rpc_thread_key_cleanup ();
|
||||
@@ -29,7 +29,8 @@ __rpc_thread_destroy (void)
|
||||
free (tvp->svcraw_private_s);
|
||||
free (tvp->authdes_cache_s);
|
||||
free (tvp->authdes_lru_s);
|
||||
free (tvp);
|
||||
if (tvp != &__libc_tsd_RPC_VARS_mem)
|
||||
free (tvp);
|
||||
__libc_tsd_set (RPC_VARS, NULL);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user