Commit ac4a5e3a authored by Luca Barbato's avatar Luca Barbato Committed by Vittorio Giovara

pthreads_frame: Do not leak on failure path

CC: libav-stable@libav.org
Bug-Id: CID 1135767
Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent 5d29efe4
......@@ -601,6 +601,7 @@ int ff_frame_thread_init(AVCodecContext *avctx)
p->frame = av_frame_alloc();
if (!p->frame) {
av_freep(&copy);
err = AVERROR(ENOMEM);
goto error;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment