diff options
author | max <max@tclers.tk> | 2013-11-15 16:13:53 (GMT) |
---|---|---|
committer | max <max@tclers.tk> | 2013-11-15 16:13:53 (GMT) |
commit | 1cc85db9fe34f20eb5109b58d4d5bd0d65140129 (patch) | |
tree | 80ea57ceadad3d6bd39feb9b54d4a379f74ee3ca /win/tclWinSock.c | |
parent | dffcad90e2d661e520f735c824ddff5f1d630ddd (diff) | |
download | tcl-1cc85db9fe34f20eb5109b58d4d5bd0d65140129.zip tcl-1cc85db9fe34f20eb5109b58d4d5bd0d65140129.tar.gz tcl-1cc85db9fe34f20eb5109b58d4d5bd0d65140129.tar.bz2 |
Don't leak getaddrinfo() results
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r-- | win/tclWinSock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c index f4d5a90..84a33ea 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -1359,10 +1359,10 @@ CreateSocket( } error: - if (addrlist == NULL) { + if (addrlist != NULL) { freeaddrinfo(addrlist); } - if (myaddrlist == NULL) { + if (myaddrlist != NULL) { freeaddrinfo(myaddrlist); } |