about summary refs log tree commit diff
path: root/sunrpc/rpc_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/rpc_thread.c')
-rw-r--r--sunrpc/rpc_thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sunrpc/rpc_thread.c b/sunrpc/rpc_thread.c
index 9a3d4dbd0c..fbc1cf72fe 100644
--- a/sunrpc/rpc_thread.c
+++ b/sunrpc/rpc_thread.c
@@ -30,9 +30,13 @@ __rpc_thread_destroy (void)
 		free (tvp->authdes_cache_s);
 		free (tvp->authdes_lru_s);
 		free (tvp);
+		__libc_tsd_set (RPC_VARS, NULL);
 	}
 }
+#ifdef _LIBC_REENTRANT
 text_set_element (__libc_thread_subfreeres, __rpc_thread_destroy);
+#endif
+text_set_element (__libc_subfreeres, __rpc_thread_destroy);
 
 
 /*