diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-01 11:22:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-01 11:36:41 +0100 |
commit | e5054c8eed339283f352c70d191b35b3c3db227e (patch) | |
tree | 50729e3a79344980740183f21af3652cf71ea527 /libavcodec/pthread_slice.c | |
parent | 842745fe1705a6e7504aadd60c0d415ae35fe651 (diff) | |
download | ffmpeg-e5054c8eed339283f352c70d191b35b3c3db227e.tar.gz |
avcodec/pthread_slice: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread_slice.c')
-rw-r--r-- | libavcodec/pthread_slice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pthread_slice.c b/libavcodec/pthread_slice.c index fea989fc4c..b948e16d24 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); } |