diff options
Diffstat (limited to 'ot_http.c')
| -rw-r--r-- | ot_http.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -22,6 +22,7 @@ | |||
| 22 | #include "ot_iovec.h" | 22 | #include "ot_iovec.h" |
| 23 | #include "ot_ip.h" | 23 | #include "ot_ip.h" |
| 24 | #include "ot_mutex.h" | 24 | #include "ot_mutex.h" |
| 25 | #include "ot_workqueue.h" | ||
| 25 | #include "ot_scan.h" | 26 | #include "ot_scan.h" |
| 26 | #include "ot_event.h" | 27 | #include "ot_event.h" |
| 27 | #include "ot_fdstate.h" | 28 | #include "ot_fdstate.h" |
| @@ -77,7 +78,7 @@ void http_close(const int64_t sock) { | |||
| 77 | free(cookie->batch); | 78 | free(cookie->batch); |
| 78 | buf_reset(&cookie->request); | 79 | buf_reset(&cookie->request); |
| 79 | if (cookie->flag & (STRUCT_HTTP_FLAG_WAITINGFORTASK | STRUCT_HTTP_FLAG_CHUNKED_IN_TRANSFER)) | 80 | if (cookie->flag & (STRUCT_HTTP_FLAG_WAITINGFORTASK | STRUCT_HTTP_FLAG_CHUNKED_IN_TRANSFER)) |
| 80 | mutex_workqueue_canceltask(sock); | 81 | workqueue_canceltask(sock); |
| 81 | if (!(cookie->flag & STRUCT_HTTP_FLAG_ONSTACK)) | 82 | if (!(cookie->flag & STRUCT_HTTP_FLAG_ONSTACK)) |
| 82 | free(cookie); | 83 | free(cookie); |
| 83 | } | 84 | } |
