Change #238438
Category | ffmpeg |
Changed by | Lidong Yan <yldhome2d2 | @gmail.com>
Changed at | Sat 05 Jul 2025 21:10:36 |
Repository | https://git.ffmpeg.org/ffmpeg.git |
Project | ffmpeg |
Branch | master |
Revision | a4a71b5e9d7d69cb6e3a9534dbcde69bcfa79ba7 |
Comments
avfilter/asrc_sinc: fix leak in config_input() In config_input(), fir_to_phase() allocates memory in h[longer], which would leak if av_calloc() to s->coeffs failed. lpf() allocates memory in h[0] and h[1], which would leak if fir_to_phase() failed. To fix this leak, add av_free(h[longer]) in as cleanup code, and replace return AVERROR* with goto cleanup to prevent from leaks. Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavfilter/asrc_sinc.c