Re: [FFmpeg-devel] [PATCH 1/4] avcodec/vp3: Fix memleak upon init failure

2020-10-20 Thread Peter Ross
On Tue, Oct 20, 2020 at 09:53:52AM +0200, Andreas Rheinhardt wrote: > Up until now, there was no cleanup in case initializing the Theora VLC > tables failed, leading to memleaks. This commit gets rid of them by > setting the FF_CODEC_CAP_INIT_CLEANUP flag for all decoders in vp3.c; > this also allo

[FFmpeg-devel] [PATCH 1/4] avcodec/vp3: Fix memleak upon init failure

2020-10-20 Thread Andreas Rheinhardt
Up until now, there was no cleanup in case initializing the Theora VLC tables failed, leading to memleaks. This commit gets rid of them by setting the FF_CODEC_CAP_INIT_CLEANUP flag for all decoders in vp3.c; this also allows to remove some (now redundant) cleanup code. Signed-off-by: Andreas Rhei