NFSv4: Ensure that nfs4_alloc_client cleans up on error.

Any pointer that was allocated through nfs_alloc_client() needs to be
freed via a call to nfs_free_client().

Reported-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

+1 -1
+1 -1
fs/nfs/nfs4client.c
··· 74 return clp; 75 76 error: 77 - kfree(clp); 78 return ERR_PTR(err); 79 } 80
··· 74 return clp; 75 76 error: 77 + nfs_free_client(clp); 78 return ERR_PTR(err); 79 } 80