]> git.sesse.net Git - nageru/commitdiff
Fix yet another memory leak in the serving part.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 3 Apr 2016 20:10:11 +0000 (22:10 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 3 Apr 2016 20:10:11 +0000 (22:10 +0200)
httpd.cpp

index 1468f9d7a4934528f5ce7de1eb336bd6d0c5caba..401509d265f5404a63119691e345d35f7f954d86 100644 (file)
--- a/httpd.cpp
+++ b/httpd.cpp
@@ -197,6 +197,7 @@ HTTPD::Mux::Mux(AVFormatContext *avctx, int width, int height)
 HTTPD::Mux::~Mux()
 {
        av_write_trailer(avctx);
+       av_free(avctx->pb->buffer);
        av_free(avctx->pb);
        avformat_free_context(avctx);
 }