summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2016-05-22 07:00:34 -0700
committerMatt Turner <mattst88@gmail.com>2016-05-22 07:01:35 -0700
commitbdc9c20df08d724b1eb3d507660f71ff47b9fc7b (patch)
tree3d03c1e0f68844c2c2d1193fd050739300199796 /src
parenta83e9afbe4bb6e89b95b6bd32c6e7b2b08402c47 (diff)
mesa: Unlock mutex on error path.
Caught by Coverity (CID 1362021). Caused by commit 015f2207c.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/fbobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index b751bf0153..de28606580 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;
}