commit | f05c124a70a4953a66acbd6d6c601ea1eb5d0fa7 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Fri Apr 05 14:13:21 2013 -0400 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Fri Apr 05 17:02:14 2013 -0400 |
tree | 63d6148281fb3ebaf810d705c0813238755c0581 | |
parent | 7b1f1fd1842e6ede25183c267ae733a7f67f00bc [diff] |
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: Trond Myklebust <Trond.Myklebust@netapp.com>