review feedback: move free'ing along with other cleanup functions
@@ -119,9 +119,9 @@ static void init_request(struct st_h2o_http1_conn_t *conn)
if (conn->req_body != NULL)
h2o_buffer_dispose(&conn->req_body);
h2o_dispose_request(&conn->req);
- }
if (conn->_unconsumed_request_size)
h2o_buffer_consume(&conn->sock->input, conn->_unconsumed_request_size);
+ }
assert(conn->req_body == NULL);
h2o_init_request(&conn->req, &conn->super, NULL);
