Re: [FFmpeg-devel] [PATCH 16/30] avcodec/indeo5: Fix memleaks upon allocation error

2020-09-15 Thread Paul B Mahol
On Tue, Sep 15, 2020 at 09:39:46AM +0200, Andreas Rheinhardt wrote: > ff_ivi_init_planes() might error out after having allocated some arrays. > Set the FF_CODEC_CAP_INIT_CLEANUP flag in order to free these arrays in > this case. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/indeo5.c

[FFmpeg-devel] [PATCH 16/30] avcodec/indeo5: Fix memleaks upon allocation error

2020-09-15 Thread Andreas Rheinhardt
ff_ivi_init_planes() might error out after having allocated some arrays. Set the FF_CODEC_CAP_INIT_CLEANUP flag in order to free these arrays in this case. Signed-off-by: Andreas Rheinhardt --- libavcodec/indeo5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/indeo5.c b/libavc