aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-02-21 15:01:51 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-02-21 15:01:51 +0000
commit45bf417301fb0a2efe63a6c9e2b01aeb8587de82 (patch)
treedb3f906a4f748c076d897856b36fc025bdc96d42 /ares
parent48029d7e745f62f4088955032842a671f3215579 (diff)
Cleanup WIN32 target using WSACleanup().
Diffstat (limited to 'ares')
-rw-r--r--ares/adig.c5
-rw-r--r--ares/ahost.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ares/adig.c b/ares/adig.c
index a019d7c4c..65213780b 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 6767b307f..2fa6dac76 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;
}