summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-08-29 01:14:26 +0200
committerAraq <rumpf_a@web.de>2011-08-29 01:14:26 +0200
commit4839800c228acfe8a5867cb65aa39f6986007a02 (patch)
treea3d11d630f0b1adcee20195d6fd0c0b0cfd5a258 /lib/pure
parent51126779048e5a97f210b4ec31a0db118637fb3b (diff)
downloadNim-4839800c228acfe8a5867cb65aa39f6986007a02.tar.gz
new actors implementation for nimrod; compiler's generics still not up for the task though
Diffstat (limited to 'lib/pure')
-rwxr-xr-xlib/pure/sockets.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim
index 958b3483b..f18cf2ba8 100755
--- a/lib/pure/sockets.nim
+++ b/lib/pure/sockets.nim
@@ -406,9 +406,11 @@ proc connectAsync*(socket: TSocket, name: string, port = TPort(0),
         var err = WSAGetLastError()
         # Windows EINTR doesn't behave same as POSIX.
         if err == WSAEWOULDBLOCK:
+          freeaddrinfo(aiList)
           return
       else:
         if errno == EINTR or errno == EINPROGRESS:
+          freeaddrinfo(aiList)
           return
         
     it = it.ai_next