- Fix possible memory leak - hc->hc_reply queue may hold malloc'd memory after return of http_server_requests
This commit is contained in:
parent
e343bfdcca
commit
b1fa9aa040
1 changed files with 1 additions and 0 deletions
|
@ -807,6 +807,7 @@ http_serve(int fd, void *opaque, struct sockaddr_storage *peer,
|
|||
http_arg_flush(&hc.hc_args);
|
||||
http_arg_flush(&hc.hc_req_args);
|
||||
|
||||
htsbuf_queue_flush(&hc.hc_reply);
|
||||
htsbuf_queue_flush(&spill);
|
||||
close(fd);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue