- Fix possible memory leak - hc->hc_reply queue may hold malloc'd memory after return of http_server_requests

This commit is contained in:
Benny Morgan 2013-06-30 19:27:48 +02:00
parent e343bfdcca
commit b1fa9aa040

View file

@ -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);
}