mesa: Unlock mutex on error path.
authorMatt Turner <mattst88@gmail.com>
Sun, 22 May 2016 14:00:34 +0000 (07:00 -0700)
committerMatt Turner <mattst88@gmail.com>
Sun, 22 May 2016 14:01:35 +0000 (07:01 -0700)
Caught by Coverity (CID 1362021). Caused by commit 015f2207c.

src/mesa/main/fbobject.c

index b751bf015328f35095ad7f018b56873124b24746..de28606580f0d8014b112a61b24964d284133a65 100644 (file)
@@ -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;
          }