Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-09-09 01:32:23 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2022-10-09 22:33:05 +0300
commit3b184fab451647a68cee42da3453658faf73f246 (patch)
tree780ee3100b8395c58fc13407cd5a708e5d764821
parent6c6861279d2d7ebe32d44975629bb49225d1fd5a (diff)
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 994f7222cd..b38ad77695 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -231,6 +231,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]);
}