On Wed, 18 Dec 2013 12:49:42 +0100, Vittorio Giovara 
<[email protected]> wrote:
> ---
> Also free out frame leak.
> Vittorio
> 
>  libavfilter/avfilter.c |   19 +++++++++++++++----
>  1 file changed, 15 insertions(+), 4 deletions(-)
> 
> diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
> index b18c0cb..11be697 100644
> --- a/libavfilter/avfilter.c
> +++ b/libavfilter/avfilter.c
> @@ -730,6 +730,7 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
>      int (*filter_frame)(AVFilterLink *, AVFrame *);
>      AVFilterPad *dst = link->dstpad;
>      AVFrame *out;
> +    int ret;
>  
>      FF_DPRINTF_START(NULL, filter_frame);
>      ff_dlog_link(NULL, link, 1);
> @@ -751,10 +752,13 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
>          default: return AVERROR(EINVAL);

What about this return? It leaks frame I think.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to