]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
- Fix possible memory leak - hc->hc_reply queue may hold malloc'd memory after return...
authorBenny Morgan <benny@zuragon.com>
Sun, 30 Jun 2013 17:27:48 +0000 (19:27 +0200)
committerBenny Morgan <benny@zuragon.com>
Sun, 30 Jun 2013 17:27:48 +0000 (19:27 +0200)
src/http.c

index 98562d74149d90de002f5be4eb0f907a581d4b62..ac73ea719403466e7746b14a0f197b8894ad4411 100644 (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);
 }