summaryrefslogtreecommitdiff
path: root/src/IO/http.c
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2014-09-10 15:51:00 +0000
committercorvid <devnull@localhost>2014-09-10 15:51:00 +0000
commit4142db137555c96b0898110471dd4af67f09b93d (patch)
treea6aa10a3fb8a8af2f07acb99d66fe1032af6fc1d /src/IO/http.c
parentafe572a3dcac774dd90684f1328dd480bfe7db97 (diff)
during freeall, free queued http socket data
I saw this with valgrind, and I think this is one that used to appear on Jeremy's logs...
Diffstat (limited to 'src/IO/http.c')
-rw-r--r--src/IO/http.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index f85e23ff..49b3a3ac 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -863,10 +863,12 @@ static void Http_host_connection_remove(HostConnection_t *hc)
static void Http_host_connection_remove_all()
{
HostConnection_t *hc;
+ SocketData_t *sd;
while (dList_length(host_connections) > 0) {
hc = (HostConnection_t*) dList_nth_data(host_connections, 0);
- while (Http_socket_dequeue(hc));
+ while ((sd = Http_socket_dequeue(hc)))
+ dFree(sd);
Http_host_connection_remove(hc);
}
dList_free(host_connections);