aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asfenc.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-03-09 19:31:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-09 21:58:38 +0100
commit2c8cff2be4a044c66e4904efa156dafd0d332d25 (patch)
tree16aa559743da7ee523e657e74f9d1889402648ae /libavformat/asfenc.c
parentcf82c426fadf90105e1fb9d5ecd267cc3aa2b288 (diff)
downloadffmpeg-2c8cff2be4a044c66e4904efa156dafd0d332d25.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>
Diffstat (limited to 'libavformat/asfenc.c')
-rw-r--r--libavformat/asfenc.c1
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;
}