[FFmpeg-cvslog] avformat/asfenc: use av_freep() for extra saftey
Michael Niedermayer
git at videolan.org
Wed Sep 11 13:29:54 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Sep 11 13:18:17 2013 +0200| [2175f768940915513a63ffdddd3860c7e9b1f948] | committer: Michael Niedermayer
avformat/asfenc: use av_freep() for extra saftey
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2175f768940915513a63ffdddd3860c7e9b1f948
---
libavformat/asfenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 6cc19c7..85748c7 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list