Skip to content
Commit f05c124a authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Fix a potential memory leak in rpc_new_client



If the call to rpciod_up() fails, we currently leak a reference to the
struct rpc_xprt.
As part of the fix, we also remove the redundant check for xprt!=NULL.
This is already taken care of by the callers.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 7b1f1fd1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment