From: Steinar H. Gunderson Date: Sun, 3 Apr 2016 20:10:11 +0000 (+0200) Subject: Fix yet another memory leak in the serving part. X-Git-Tag: 1.2.0~11 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=835643ff858560faf49feee4cbb1a91d5e97e00c;p=nageru Fix yet another memory leak in the serving part. --- diff --git a/httpd.cpp b/httpd.cpp index 1468f9d..401509d 100644 --- 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); }