[SIGAR-132] Fix possible memory leak in sigar_rpc_ping
This commit is contained in:
parent
48558541ad
commit
bb5dc06cba
|
@ -824,13 +824,9 @@ SIGAR_DECLARE(int) sigar_rpc_ping(char *host,
|
|||
rpc_stat = clnt_call(client, NULLPROC, (xdrproc_t)xdr_void, NULL,
|
||||
(xdrproc_t)xdr_void, NULL, timeout);
|
||||
|
||||
if (rpc_stat != RPC_SUCCESS) {
|
||||
return rpc_stat;
|
||||
}
|
||||
|
||||
clnt_destroy(client);
|
||||
|
||||
return RPC_SUCCESS;
|
||||
return rpc_stat;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue