clnt_destroy man page says it will close the socket
This commit is contained in:
parent
4436d27abd
commit
2714eb3718
|
@ -465,7 +465,6 @@ SIGAR_DECLARE(int) sigar_nfs_ping(char *host)
|
||||||
retval = -1;
|
retval = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
close(sock);
|
|
||||||
clnt_destroy(client);
|
clnt_destroy(client);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Reference in New Issue