[FFmpeg-devel] [PATCH] avfilter/formats: fix leak of channel_layouts on error

Paul B Mahol onemda at gmail.com
Tue Jan 5 20:06:02 CET 2016

On 1/2/16, Ganesh Ajjanagadde <gajjanag at mit.edu> wrote:
> Thanks a lot for addressing this. But a client may not necessarily
> attempt initialization of the channel layouts first, so instead of
> do_nothing calls, shouldn't there be an equivalent for
> AVFilterFormats*?
> Of course, the commit message will need rewording.

After second look I see no need for this code, the present code already
frees all allocated memory.

Whichever instructions you used to expose leaks were flawed.

More information about the ffmpeg-devel mailing list