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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to