summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-28 02:56:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-28 02:56:02 +0100
commit627f5658b68f2a0fb51b3e7e512a88817a4409c3 (patch)
treeb7b1cfe3ec350103724a5ed73de890f4282a3fc3 /ffmpeg.c
parentcc63da1223da2ccd758d3aab815ad230d74f1a5d (diff)
ffmpeg: Use av_freep(), avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 46ea57b933..ddf42726d9 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);
}
}