Commit 2c8cff2b authored by Andreas Cadhalpun's avatar Andreas Cadhalpun Committed by Michael Niedermayer

asfenc: fix leaking asf->index_ptr on error

Signed-off-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cf82c426
...@@ -660,6 +660,7 @@ static int asf_write_header(AVFormatContext *s) ...@@ -660,6 +660,7 @@ static int asf_write_header(AVFormatContext *s)
* It is needed to use asf as a streamable format. */ * It is needed to use asf as a streamable format. */
if (asf_write_header1(s, 0, DATA_HEADER_SIZE) < 0) { if (asf_write_header1(s, 0, DATA_HEADER_SIZE) < 0) {
//av_free(asf); //av_free(asf);
av_freep(&asf->index_ptr);
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment