mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-02 18:48:27 +00:00
asfenc: fix leaking asf->index_ptr on error
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
212556cd21
commit
72211a2af0
@ -630,6 +630,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user