ffmpeg | branch: master | Michael Niedermayer <michae...@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 <michae...@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);
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to