Skip to content

Commit

Permalink
* sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
Browse files Browse the repository at this point in the history
	cleanup for initial thread, just the free call on TVP.
  • Loading branch information
Ulrich Drepper committed May 4, 2006
1 parent 3f87d90 commit ca4fce0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
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.


Expand Down
5 changes: 3 additions & 2 deletions sunrpc/rpc_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand All @@ -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);
}
}
Expand Down

0 comments on commit ca4fce0

Please sign in to comment.