[FFmpeg-devel] [PATCH] avformat/hls.c: Properly free prev_segments dynarray after playlist parsing
Liu Steven
lq at chinaffmpeg.org
Mon Dec 24 12:59:53 EET 2018
> 在 2018年12月24日,下午6:25,Liu Steven <lq at chinaffmpeg.org> 写道:
>
>
>
>> 在 2018年12月24日,下午5:24,Valery Kot <valery.kot at gmail.com> 写道:
>>
>> Updated commit message for hls.c memory leak fix
>> <0001-avformat-hls.c-Properly-free-prev_segments-dynarray-.txt>_______________________________________________
>
> Looking at the free_segment_dynarray:
>
> static void free_segment_dynarray(struct segment **segments, int n_segments)
> {
> int i;
> for (i = 0; i < n_segments; i++) {
> av_freep(&segments[i]->key);
> av_freep(&segments[i]->url);
> av_freep(&segments[i]);
> }
> }
>
> perhaps the segments have been free?
Ah, ok, i see, you are right.
Patch will push after 24 hours if there have no objections.
Thanks
Steven
>
> Thanks
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list