Cleanup WIN32 target using WSACleanup().
authorGisle Vanem <gvanem@broadpark.no>
Wed, 21 Feb 2007 15:01:51 +0000 (15:01 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Wed, 21 Feb 2007 15:01:51 +0000 (15:01 +0000)
adig.c
ahost.c

diff --git a/adig.c b/adig.c
index a019d7c..6521378 100644 (file)
--- a/adig.c
+++ b/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/ahost.c b/ahost.c
index 6767b30..2fa6dac 100644 (file)
--- a/ahost.c
+++ b/ahost.c
@@ -143,6 +143,11 @@ int main(int argc, char **argv)
     }
 
   ares_destroy(channel);
+
+#ifdef USE_WINSOCK
+  WSACleanup();
+#endif
+
   return 0;
 }