[FFmpeg-devel] [PATCH 3/3] lavf/tee: fix leak of bsfs array.

Nicolas George george at nsup.org
Mon Oct 21 17:08:48 CEST 2013


Signed-off-by: Nicolas George <george at nsup.org>
---
 libavformat/tee.c | 1 +
 1 file changed, 1 insertion(+)


Probably not spotted by Coverity, but caught by Valgrind at the same time as
#1.


diff --git a/libavformat/tee.c b/libavformat/tee.c
index 78348e3..12ea0ea 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -303,6 +303,7 @@ static void close_slaves(AVFormatContext *avf)
             }
         }
         av_freep(&tee->slaves[i].stream_map);
+        av_freep(&tee->slaves[i].bsfs);
 
         avio_close(avf2->pb);
         avf2->pb = NULL;
-- 
1.8.4.rc3



More information about the ffmpeg-devel mailing list