[SIGAR-132] Fix possible memory leak in sigar_rpc_ping

This commit is contained in:
Doug MacEachern committed 2009-02-06 13:46:49 -08:00
1 parent 6db07f1cba
commit bd2178d0cf
1 file changed
+1 -5
+1 -5
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,
(xdrproc_t)xdr_void, NULL, timeout);
if (rpc_stat != RPC_SUCCESS) {
return rpc_stat;
}
clnt_destroy(client);
return RPC_SUCCESS;
return rpc_stat;
}
#endif