Skip to content

Commit

Permalink
lavf/segment: Fix memleak.
Browse files Browse the repository at this point in the history
Reviewed-by: Stefano Sabatini
Reviewed-by: Ganesh Ajjanagadde
  • Loading branch information
cehoyos committed Aug 25, 2015
1 parent d65b911 commit 83a508c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavformat/segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ static int seg_write_trailer(struct AVFormatContext *s)
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) {
Expand Down

0 comments on commit 83a508c

Please sign in to comment.