diff --git a/libavformat/segment.c b/libavformat/segment.c index 0d66211962..9345dc9e37 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -876,6 +876,7 @@ fail: av_opt_free(seg); av_freep(&seg->times); av_freep(&seg->frames); + av_freep(&seg->cur_entry.filename); cur = seg->segment_list_entries; while (cur) {