aboutsummaryrefslogtreecommitdiff
path: root/src/IO
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2016-07-09 02:02:40 +0000
committercorvid <devnull@localhost>2016-07-09 02:02:40 +0000
commitf371629e8298c72bc087f7f6294e121ebdbc4b5c (patch)
treefa0856457e867e95287ebbee8a688411bac9da84 /src/IO
parent024df0ee2946374450ccf8f6a553e7a6a01ee1af (diff)
freeing http socket, close FD that's being connected
Diffstat (limited to 'src/IO')
-rw-r--r--src/IO/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index 8e19f4c1..5179dfab 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -302,6 +302,7 @@ static void Http_socket_free(int SKey)
if (S->flags & HTTP_SOCKET_IOWATCH_ACTIVE) {
S->flags &= ~HTTP_SOCKET_IOWATCH_ACTIVE;
a_IOwatch_remove_fd(S->SockFD, -1);
+ dClose(S->SockFD);
}
dStr_free(S->https_proxy_reply, 1);