diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-03-09 19:31:39 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-13 13:04:31 +0100 |
commit | 39c9b47bb60946157801ebe73b26dc58b1c6cf2c (patch) | |
tree | a3bdb19ae15e1443710365bf184cb9523207605d | |
parent | 016bf7cb817b1d118ddb9e9ba99c74030203c9e7 (diff) | |
download | ffmpeg-39c9b47bb60946157801ebe73b26dc58b1c6cf2c.tar.gz |
asfenc: fix leaking asf->index_ptr on error
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 2c8cff2be4a044c66e4904efa156dafd0d332d25)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/asfenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index f4f64a62e1..5e0f7b05c7 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -660,6 +660,7 @@ static int asf_write_header(AVFormatContext *s) * It is needed to use asf as a streamable format. */ if (asf_write_header1(s, 0, DATA_HEADER_SIZE) < 0) { //av_free(asf); + av_freep(&asf->index_ptr); return -1; } |