448 HTTPRequest *request = io->request; |
448 HTTPRequest *request = io->request; |
449 |
449 |
450 int r = handle_request(request, NULL, h); |
450 int r = handle_request(request, NULL, h); |
451 if(r != 0) { |
451 if(r != 0) { |
452 connection_destroy(request->connection); |
452 connection_destroy(request->connection); |
|
453 free(request->netbuf->inbuf); |
|
454 free(request->netbuf); |
453 } |
455 } |
454 |
456 |
455 /* |
457 /* |
456 * handle_request can return before the request is finished, but it copies |
458 * handle_request can return before the request is finished, but it copies |
457 * all important data. We can free request, parser and event |
459 * all important data. We can free request, parser and event |