diff --git a/ares/adig.c b/ares/adig.c index a019d7c4ce..65213780b4 100644 --- a/ares/adig.c +++ b/ares/adig.c @@ -294,6 +294,11 @@ int main(int argc, char **argv) } ares_destroy(channel); + +#ifdef USE_WINSOCK + WSACleanup(); +#endif + return 0; } diff --git a/ares/ahost.c b/ares/ahost.c index 6767b307fb..2fa6dac76f 100644 --- a/ares/ahost.c +++ b/ares/ahost.c @@ -143,6 +143,11 @@ int main(int argc, char **argv) } ares_destroy(channel); + +#ifdef USE_WINSOCK + WSACleanup(); +#endif + return 0; }