src/server/daemon/sessionhandler.c

changeset 544
27684460629f
parent 543
3335f431a91b
child 546
5494c28db896
equal deleted inserted replaced
543:3335f431a91b 544:27684460629f
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

mercurial