diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-29 18:36:01 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-29 18:36:01 +0200 |
commit | eedee6a0d1c8fd498029d8154fc025154427bf7b (patch) | |
tree | 68b50871de2bc6b16e27072f6f61289a3ae3b88c /tests/port | |
parent | a709cc416a59b3e80ecf2969de6d2fc04734ebf9 (diff) | |
download | wolfbones-eedee6a0d1c8fd498029d8154fc025154427bf7b.tar.gz wolfbones-eedee6a0d1c8fd498029d8154fc025154427bf7b.tar.bz2 |
more WSACleanup in test_getaddrinfo
Diffstat (limited to 'tests/port')
-rw-r--r-- | tests/port/test_getaddrinfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/port/test_getaddrinfo.c b/tests/port/test_getaddrinfo.c index 530b518..e0665d3 100644 --- a/tests/port/test_getaddrinfo.c +++ b/tests/port/test_getaddrinfo.c @@ -31,6 +31,9 @@ int main( void ) { if( error != 0 ) { fprintf( stderr, "getaddrinfo failed: %s (%d)\n", gai_strerror( error ), error ); +#ifdef _WIN32 + WSACleanup( ); +#endif return EXIT_FAILURE; } @@ -44,6 +47,9 @@ int main( void ) { if( error != 0 ) { fprintf( stderr, "getnameinfo failed: %s (%d)\n", gai_strerror( error ), error ); +#ifdef _WIN32 + WSACleanup( ); +#endif return EXIT_FAILURE; } |