Re: [FFmpeg-devel] [PATCH 19/30] avcodec/magicyuvenc: Fix memleak upon init failure

2020-09-15 Thread Paul B Mahol
On Tue, Sep 15, 2020 at 09:39:49AM +0200, Andreas Rheinhardt wrote: > If an error happens during init after an allocation has succeeded, > the already allocated data leaked up until now. Fix this by setting the > FF_CODEC_CAP_INIT_CLEANUP flag. > > Signed-off-by: Andreas Rheinhardt > --- > libav

[FFmpeg-devel] [PATCH 19/30] avcodec/magicyuvenc: Fix memleak upon init failure

2020-09-15 Thread Andreas Rheinhardt
If an error happens during init after an allocation has succeeded, the already allocated data leaked up until now. Fix this by setting the FF_CODEC_CAP_INIT_CLEANUP flag. Signed-off-by: Andreas Rheinhardt --- libavcodec/magicyuvenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec