From 1c5647f419db1e93c0f8dac3602c2cec1ffa3a9c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 7 Oct 2014 03:40:57 +0200 Subject: [PATCH] avcodec/proresenc_kostya: use av_freep(), do not leave stale pointers in memory Signed-off-by: Michael Niedermayer --- 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 9f7c03efca..ad27e16150 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);