summaryrefslogtreecommitdiff
path: root/ahost.c
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
commit908070821ebd3091cc89671ffd8ae18520694daa (patch)
tree43d25c6816ee6948f4e1af0a4518280b42935fa7 /ahost.c
parent3f00c1cc9a4787659b26240405148b1e4d7f8aec (diff)
downloadc-ares-908070821ebd3091cc89671ffd8ae18520694daa.tar.gz
c-ares-908070821ebd3091cc89671ffd8ae18520694daa.tar.bz2
c-ares-908070821ebd3091cc89671ffd8ae18520694daa.zip
Cleanup WIN32 target using WSACleanup().
Diffstat (limited to 'ahost.c')
-rw-r--r--ahost.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ahost.c b/ahost.c
index 6767b30..2fa6dac 100644
--- 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;
}