1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

avformat/asfenc: use av_freep() for extra saftey

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-09-11 13:18:17 +02:00
parent 2832a82e17
commit 2175f76894

View File

@ -884,7 +884,7 @@ static int asf_write_trailer(AVFormatContext *s)
asf_write_header1(s, file_size, data_size - asf->data_offset);
}
av_free(asf->index_ptr);
av_freep(&asf->index_ptr);
return 0;
}