(__rpc_thread_key_cleanup): Also free client->cl_auth.
authordrepper <drepper>
Thu, 4 May 2006 18:22:38 +0000 (18:22 +0000)
committerdrepper <drepper>
Thu, 4 May 2006 18:22:38 +0000 (18:22 +0000)
sunrpc/key_call.c

index 77c0ce1..63293ae 100644 (file)
@@ -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);
        }
 }