diff options
author | 2018-09-13 09:42:16 +0000 | |
---|---|---|
committer | 2018-09-13 09:42:16 +0000 | |
commit | d797e99a043e01609583a37c04e1e509d126e1a0 (patch) | |
tree | 708ce78fd1003cd0e485eb01bac9fdc9f583896a /tensorflow/contrib/ignite | |
parent | ce9b23070638094022036656e5d1fbf3e23b74c6 (diff) |
Fix windows build.
Diffstat (limited to 'tensorflow/contrib/ignite')
-rw-r--r-- | tensorflow/contrib/ignite/kernels/ignite_plain_client_windows.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/contrib/ignite/kernels/ignite_plain_client_windows.cc b/tensorflow/contrib/ignite/kernels/ignite_plain_client_windows.cc index 9cd08a7779..17f2bf45d1 100644 --- a/tensorflow/contrib/ignite/kernels/ignite_plain_client_windows.cc +++ b/tensorflow/contrib/ignite/kernels/ignite_plain_client_windows.cc @@ -24,6 +24,7 @@ limitations under the License. #pragma comment(lib, "Mswsock.lib") #pragma comment(lib, "AdvApi32.lib") +#include "tensorflow/core/lib/gtl/cleanup.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/platform/logging.h" @@ -58,7 +59,7 @@ Status PlainClient::Connect() { &result); if (res != 0) return errors::Internal("Getaddrinfo failed with error: ", res); - auto clean = gtl::MakeCleanup([result] { reeaddrinfo(result); }); + auto clean = gtl::MakeCleanup([result] { freeaddrinfo(result); }); for (ptr = result; ptr != NULL; ptr = ptr->ai_next) { sock_ = socket(ptr->ai_family, ptr->ai_socktype, ptr->ai_protocol); |