You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
@@ -250,6 +250,7 @@ static void free_init_section_list(struct playlist *pls)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < pls->n_init_sections; 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]->url);
|
||||||
av_freep(&pls->init_sections[i]);
|
av_freep(&pls->init_sections[i]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user