From b1fa9aa040fbc1e8bad7700fb43c7941e7e215af Mon Sep 17 00:00:00 2001 From: Benny Morgan Date: Sun, 30 Jun 2013 19:27:48 +0200 Subject: [PATCH] - Fix possible memory leak - hc->hc_reply queue may hold malloc'd memory after return of http_server_requests --- src/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http.c b/src/http.c index 98562d74..ac73ea71 100644 --- a/src/http.c +++ b/src/http.c @@ -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); }