nfsd: Fix memleak
[pandora-kernel.git] / fs / nfsd / nfs4state.c
index 8b197d2..7d189dc 100644 (file)
@@ -1009,6 +1009,8 @@ free_client(struct nfs4_client *clp)
                put_group_info(clp->cl_cred.cr_group_info);
        kfree(clp->cl_principal);
        kfree(clp->cl_name.data);
+       idr_remove_all(&clp->cl_stateids);
+       idr_destroy(&clp->cl_stateids);
        kfree(clp);
 }