[FFmpeg-devel] [PATCH 0/4] fix leaks in movenc, vorbisenc, lut3d and iamf_writer
Lidong Yan
yldhome2d2 at gmail.com
Fri Jun 27 17:09:14 EEST 2025
Fix multiple leaks in error paths. Simply add av_free() in error path or
replace return AVERROR* with goto cleanup to prevent from leaks.
Lidong Yan (4):
avformat/movenc: fix multiple leaks in error paths
avcodec/vorbisenc: fix leak if av_mallocz failed
avfilter/vf_lut3d: fix leak if allocate_3dlut failed
avformat/iamf_writer: fix leaks of avio_open_dyn_buf() allocated
memory
libavcodec/vorbisenc.c | 4 +++-
libavfilter/vf_lut3d.c | 2 +-
libavformat/iamf_writer.c | 47 +++++++++++++++++++++++++--------------
libavformat/movenc.c | 22 ++++++++++++------
4 files changed, 49 insertions(+), 26 deletions(-)
--
2.50.0.108.g6ae0c543ae
More information about the ffmpeg-devel
mailing list