close sock in nfs_ping
This commit is contained in:
1 parent
b6228e48d4
commit
4436d27abd
1 file changed
+2
@@ -464,6 +464,8 @@ SIGAR_DECLARE(int) sigar_nfs_ping(char *host)
|
||||
if (rpc_stat != RPC_SUCCESS) {
|
||||
retval = -1;
|
||||
}
|
||||
|
||||
close(sock);
|
||||
clnt_destroy(client);
|
||||
|
||||
return retval;
|
||||
|
||||
Reference in new issue
Block a user