aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tests/noproxy.c
diff options
context:
space:
mode:
authorLidong Yan <yldhome2d2@gmail.com>2025-06-27 22:09:16 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2025-06-28 23:54:39 +0200
commit40a3d35da6ba51e0a4e59e754d033feefafc036d (patch)
tree8c8a73050251230008a92758f6563e1808d14850 /libavformat/tests/noproxy.c
parent7d384869751b45d4d057df67dde9050a82590a6e (diff)
downloadffmpeg-40a3d35da6ba51e0a4e59e754d033feefafc036d.tar.gz
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>
Diffstat (limited to 'libavformat/tests/noproxy.c')
0 files changed, 0 insertions, 0 deletions