aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-11-11 23:55:25 +0100
committerClément Bœsch <ubitux@gmail.com>2012-11-13 20:02:43 +0100
commit41ebbb3b0462182a87f610fe6a48c6ed8acf5cd7 (patch)
treef00583291a080524df71260921edbb4a6be04e81 /libavformat
parent7c76eaeca2791261d3f4f5c98c95f44abdbd879a (diff)
downloadffmpeg-41ebbb3b0462182a87f610fe6a48c6ed8acf5cd7.tar.gz
lavf/wtvenc: fix s[tp]_pairs memleak.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/wtvenc.c3
1 files changed, 3 insertions, 0 deletions
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;
}