diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-03-09 19:31:39 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-29 03:34:22 +0200 |
commit | de2f46c59dade95fe45b7b99fb4c0619943ef3ad (patch) | |
tree | a0d50404445b2298b409ef62ba3ef3468217de41 | |
parent | 7b3d8ae32d2909c6e2149ae874b565392fd183b2 (diff) | |
download | ffmpeg-de2f46c59dade95fe45b7b99fb4c0619943ef3ad.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 cccbf858c7..ece840eba6 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -664,6 +664,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; } |