aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index 6c247792c..551fac339 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -254,7 +254,8 @@ CURLcode http_done(struct connectdata *conn)
*bytecount = http->readbytecount + http->writebytecount;
}
- /* TBD: the HTTP struct remains allocated here */
+ free(http);
+ data->proto.http=NULL; /* it is gone */
return CURLE_OK;
}