From: Benny Morgan Date: Sun, 30 Jun 2013 17:27:48 +0000 (+0200) Subject: - Fix possible memory leak - hc->hc_reply queue may hold malloc'd memory after return... X-Git-Tag: v3.9~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1fa9aa040fbc1e8bad7700fb43c7941e7e215af;p=thirdparty%2Ftvheadend.git - Fix possible memory leak - hc->hc_reply queue may hold malloc'd memory after return of http_server_requests --- diff --git a/src/http.c b/src/http.c index 98562d741..ac73ea719 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); }