]> granicus.if.org Git - curl/commitdiff
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)
ares/adig.c
ares/ahost.c

index a019d7c4ced1b278468caacd0adfb537c9b64573..65213780b4bec810f185b7fb7dfcd7b8ac1bf727 100644 (file)
@@ -294,6 +294,11 @@ int main(int argc, char **argv)
     }
 
   ares_destroy(channel);
+
+#ifdef USE_WINSOCK
+  WSACleanup();
+#endif
+
   return 0;
 }
 
index 6767b307fb7b19b7e21cd2169a856398cd003093..2fa6dac76fd6e1ff67fa85449c1737930ca1c880 100644 (file)
@@ -143,6 +143,11 @@ int main(int argc, char **argv)
     }
 
   ares_destroy(channel);
+
+#ifdef USE_WINSOCK
+  WSACleanup();
+#endif
+
   return 0;
 }