close sock in nfs_ping

This commit is contained in:
Doug MacEachern 2005-02-21 02:37:00 +00:00
parent b6228e48d4
commit 4436d27abd
1 changed files with 2 additions and 0 deletions

View File

@ -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;