diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c index 9cc5a05708..8300662c13 100644 --- a/libavformat/wtvenc.c +++ b/libavformat/wtvenc.c @@ -730,6 +730,9 @@ static int write_trailer(AVFormatContext *s) avio_wl32(pb, file_end_pos >> WTV_SECTOR_BITS); avio_flush(pb); + + av_free(wctx->sp_pairs); + av_free(wctx->st_pairs); return 0; }