[FFmpeg-cvslog] avformat/mpegenc: Use av_freep() to avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Sun Dec 21 19:33:52 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 21 19:24:11 2014 +0100| [47b9481d9db8a362d464b7383dc7b149e0119789] | committer: Michael Niedermayer
avformat/mpegenc: Use av_freep() to 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=47b9481d9db8a362d464b7383dc7b149e0119789
---
libavformat/mpegenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index f0fe771..8339f8b 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -517,7 +517,7 @@ static av_cold int mpeg_mux_init(AVFormatContext *ctx)
fail:
for (i = 0; i < ctx->nb_streams; i++)
- av_free(ctx->streams[i]->priv_data);
+ av_freep(&ctx->streams[i]->priv_data);
return AVERROR(ENOMEM);
}
More information about the ffmpeg-cvslog
mailing list