From: Michael Niedermayer Date: Sat, 1 Nov 2014 10:22:06 +0000 (+0100) Subject: avcodec/pthread_slice: Use av_freep() to avoid leaving stale pointers in memory X-Git-Tag: n2.6-dev~683 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/e5054c8eed339283f352c70d191b35b3c3db227e avcodec/pthread_slice: Use av_freep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- diff --git a/libavcodec/pthread_slice.c b/libavcodec/pthread_slice.c index fea989f..b948e16 100644 --- a/libavcodec/pthread_slice.c +++ b/libavcodec/pthread_slice.c @@ -120,7 +120,7 @@ void ff_slice_thread_free(AVCodecContext *avctx) pthread_mutex_destroy(&c->current_job_lock); pthread_cond_destroy(&c->current_job_cond); pthread_cond_destroy(&c->last_job_cond); - av_free(c->workers); + av_freep(&c->workers); av_freep(&avctx->internal->thread_ctx); }