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

Stefano Sabatini stefasab at gmail.com
Mon Oct 21 17:29:05 CEST 2013


On date Monday 2013-10-21 17:08:48 +0200, Nicolas George encoded:
> 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;

LGTM, thanks.
-- 
FFmpeg = Foolish Frenzy Martial Pure Elaborated Geisha


More information about the ffmpeg-devel mailing list