Skip to content

Commit

Permalink
* sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
Browse files Browse the repository at this point in the history
	client->cl_auth.
  • Loading branch information
Ulrich Drepper committed May 4, 2006
1 parent ca4fce0 commit 48be311
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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/key_call.c (__rpc_thread_key_cleanup): Also free
client->cl_auth.

* sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
cleanup for initial thread, just the free call on TVP.

Expand Down
5 changes: 4 additions & 1 deletion sunrpc/key_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,11 @@ __rpc_thread_key_cleanup (void)
struct key_call_private *kcp = RPC_THREAD_VARIABLE(key_call_private_s);

if (kcp) {
if (kcp->client)
if (kcp->client) {
if (kcp->client->cl_auth)
auth_destroy (kcp->client->cl_auth);
clnt_destroy(kcp->client);
}
free (kcp);
}
}
Expand Down

0 comments on commit 48be311

Please sign in to comment.