[SIGAR-132] Fix possible memory leak in sigar_rpc_ping

This commit is contained in:
Doug MacEachern 2009-01-06 17:25:15 +00:00
parent 48558541ad
commit bb5dc06cba
1 changed files with 1 additions and 5 deletions

View File

@ -824,13 +824,9 @@ SIGAR_DECLARE(int) sigar_rpc_ping(char *host,
rpc_stat = clnt_call(client, NULLPROC, (xdrproc_t)xdr_void, NULL, rpc_stat = clnt_call(client, NULLPROC, (xdrproc_t)xdr_void, NULL,
(xdrproc_t)xdr_void, NULL, timeout); (xdrproc_t)xdr_void, NULL, timeout);
if (rpc_stat != RPC_SUCCESS) {
return rpc_stat;
}
clnt_destroy(client); clnt_destroy(client);
return RPC_SUCCESS; return rpc_stat;
} }
#endif #endif