[PATCH] RPC: Make rpc_create_client() destroy the transport on failure.
[linux-2.6.git] / net / sunrpc / clnt.c
index 209aaf5956958e1dfa086b7a3ba05b2e71088f47..99515d7727a61fb7bc1788dd2e42fc0ad39bafda 100644 (file)
@@ -178,6 +178,7 @@ out_no_path:
                kfree(clnt->cl_server);
        kfree(clnt);
 out_err:
+       xprt_destroy(xprt);
        return ERR_PTR(err);
 }