Re: [FFmpeg-devel] [PATCH 29/40] avcodec/cfhdenc: Fix leaks on allocation errors

2020-09-14 Thread Paul B Mahol
On Mon, Sep 14, 2020 at 07:27:36AM +0200, Andreas Rheinhardt wrote: > The CineForm HD encoder attempts to allocate several buffers in its init > function; yet if only some of these allocations succeed, the > successfully allocated buffers leak. This is fixed by setting the > FF_CODEC_CAP_INIT_CLEAN

[FFmpeg-devel] [PATCH 29/40] avcodec/cfhdenc: Fix leaks on allocation errors

2020-09-13 Thread Andreas Rheinhardt
The CineForm HD encoder attempts to allocate several buffers in its init function; yet if only some of these allocations succeed, the successfully allocated buffers leak. This is fixed by setting the FF_CODEC_CAP_INIT_CLEANUP flag. Signed-off-by: Andreas Rheinhardt --- libavcodec/cfhdenc.c | 1 +