deprecated nativesockets.dealloc, use freeAddrInfo instead; fixed stdlib deprecations

This commit is contained in:
Andreas Rumpf 2017-01-30 08:50:51 +01:00
commit 76eb20d2d3
6 changed files with 35 additions and 33 deletions

View file

@ -378,7 +378,7 @@ when defined(windows) or defined(nimdoc):
success = false
it = it.ai_next
dealloc(aiList)
freeAddrInfo(aiList)
if not success:
retFuture.fail(newException(OSError, osErrorMsg(lastError)))
return retFuture
@ -1348,7 +1348,7 @@ else:
success = false
it = it.ai_next
dealloc(aiList)
freeAddrInfo(aiList)
if not success:
retFuture.fail(newException(OSError, osErrorMsg(lastError)))
return retFuture