Change #237954
Category | ffmpeg |
Changed by | Lidong Yan <yldhome2d2 | @gmail.com>
Changed at | Sat 28 Jun 2025 23:54:39 |
Repository | https://git.ffmpeg.org/ffmpeg.git |
Project | ffmpeg |
Branch | master |
Revision | 40a3d35da6ba51e0a4e59e754d033feefafc036d |
Comments
avcodec/vorbisenc: fix leak if av_mallocz failed In put_main_header(), av_mallocz() allocates memory to local variable buffer, buffer leaks if av_mallocz() to *out failed. Add av_free(buffer) before return error code. Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/vorbisenc.c