[FFmpeg-cvslog] avcodec/proresenc_kostya: use av_freep(), do not leave stale pointers in memory

Michael Niedermayer git at videolan.org
Tue Oct 7 03:49:08 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct  7 03:40:57 2014 +0200| [1c5647f419db1e93c0f8dac3602c2cec1ffa3a9c] | committer: Michael Niedermayer

avcodec/proresenc_kostya: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1c5647f419db1e93c0f8dac3602c2cec1ffa3a9c
---

 libavcodec/proresenc_kostya.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c
index 9f7c03e..ad27e16 100644
--- a/libavcodec/proresenc_kostya.c
+++ b/libavcodec/proresenc_kostya.c
@@ -1101,7 +1101,7 @@ static av_cold int encode_close(AVCodecContext *avctx)
 
     if (ctx->tdata) {
         for (i = 0; i < avctx->thread_count; i++)
-            av_free(ctx->tdata[i].nodes);
+            av_freep(&ctx->tdata[i].nodes);
     }
     av_freep(&ctx->tdata);
     av_freep(&ctx->slice_q);



More information about the ffmpeg-cvslog mailing list