Re: [FFmpeg-devel] [PATCH 27/40] avcodec/avrndec: Fix memleak on error

2020-09-14 Thread Paul B Mahol
On Mon, Sep 14, 2020 at 07:27:34AM +0200, Andreas Rheinhardt wrote: > If ff_codec_open2_recursive() fails, the already allocated > AVCodecContext leaks. Fix this by setting the FF_CODEC_CAP_INIT_CLEANUP > flag. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/avrndec.c | 2 +- > 1 file

[FFmpeg-devel] [PATCH 27/40] avcodec/avrndec: Fix memleak on error

2020-09-13 Thread Andreas Rheinhardt
If ff_codec_open2_recursive() fails, the already allocated AVCodecContext leaks. Fix this by setting the FF_CODEC_CAP_INIT_CLEANUP flag. Signed-off-by: Andreas Rheinhardt --- libavcodec/avrndec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/avrndec.c