mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/asfenc: use av_freep() for extra saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2832a82e17
commit
2175f76894
|
@ -884,7 +884,7 @@ static int asf_write_trailer(AVFormatContext *s)
|
||||||
asf_write_header1(s, file_size, data_size - asf->data_offset);
|
asf_write_header1(s, file_size, data_size - asf->data_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
av_free(asf->index_ptr);
|
av_freep(&asf->index_ptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue