[FFmpeg-cvslog] ffmpeg: Use av_freep(), avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Sun Dec 28 03:04:10 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 28 02:56:02 2014 +0100| [627f5658b68f2a0fb51b3e7e512a88817a4409c3] | committer: Michael Niedermayer
ffmpeg: Use av_freep(), avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=627f5658b68f2a0fb51b3e7e512a88817a4409c3
---
ffmpeg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 46ea57b..ddf4272 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -516,7 +516,7 @@ static void ffmpeg_cleanup(int ret)
if (vstats_file)
fclose(vstats_file);
- av_free(vstats_filename);
+ av_freep(&vstats_filename);
av_freep(&input_streams);
av_freep(&input_files);
@@ -2294,7 +2294,7 @@ static void print_sdp(void)
} else {
avio_printf(sdp_pb, "SDP:\n%s", sdp);
avio_close(sdp_pb);
- av_free(sdp_filename);
+ av_freep(&sdp_filename);
}
}
More information about the ffmpeg-cvslog
mailing list