From bdc9c20df08d724b1eb3d507660f71ff47b9fc7b Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 22 May 2016 07:00:34 -0700 Subject: mesa: Unlock mutex on error path. Caught by Coverity (CID 1362021). Caused by commit 015f2207c. --- src/mesa/main/fbobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index b751bf0..de28606 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -2699,6 +2699,7 @@ create_framebuffers(GLsizei n, GLuint *framebuffers, bool dsa) if (dsa) { fb = ctx->Driver.NewFramebuffer(ctx, framebuffers[i]); if (!fb) { + _mesa_HashUnlockMutex(ctx->Shared->FrameBuffers); _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", func); return; } -- cgit v1.1