close sock in nfs_ping
This commit is contained in:
parent
b6228e48d4
commit
4436d27abd
|
@ -464,6 +464,8 @@ SIGAR_DECLARE(int) sigar_nfs_ping(char *host)
|
||||||
if (rpc_stat != RPC_SUCCESS) {
|
if (rpc_stat != RPC_SUCCESS) {
|
||||||
retval = -1;
|
retval = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close(sock);
|
||||||
clnt_destroy(client);
|
clnt_destroy(client);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Reference in New Issue