diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-09-09 00:32:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-11-03 23:29:46 +0100 |
commit | 71dd8b8da0676fcd838daf8e4fb76d6b89174d19 (patch) | |
tree | 349c4a64c933ef160f7fdd0c9d0a44caf053ef9b | |
parent | 728b3bc74ed4541680cd514e2487e7a5ea22020d (diff) | |
download | ffmpeg-71dd8b8da0676fcd838daf8e4fb76d6b89174d19.tar.gz |
libavformat/hls: Free keys
Fixes: memleak
Fixes: 50703/clusterfuzz-testcase-minimized-ffmpeg_dem_HLS_fuzzer-6399058578636800
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d32a9f3137c91de86547601a38fea0693c3497f1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/hls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c index 53d30d97ad..d5e9b2179f 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -243,6 +243,7 @@ static void free_init_section_list(struct playlist *pls) { int i; for (i = 0; i < pls->n_init_sections; i++) { + av_freep(&pls->init_sections[i]->key); av_freep(&pls->init_sections[i]->url); av_freep(&pls->init_sections[i]); } |