Skip to content

Commit

Permalink
Merge pull request #303 from skyfireitdiy/patch-2
Browse files Browse the repository at this point in the history
fixed fd leak on linux
  • Loading branch information
cinemast committed May 20, 2021
2 parents b48986f + 959202b commit 025daec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jsonrpccpp/client/connectors/linuxtcpsocketclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ int LinuxTcpSocketClient::Connect(const string &ip, const int &port) {
message = strerror(err);
break;
}
close(socket_fd);
throw JsonRpcException(Errors::ERROR_CLIENT_CONNECTOR, message);
}
return socket_fd;
Expand Down

0 comments on commit 025daec

Please sign in to comment.