From: Matt Turner Date: Sun, 22 May 2016 14:00:34 +0000 (-0700) Subject: mesa: Unlock mutex on error path. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdc9c20df08d724b1eb3d507660f71ff47b9fc7b;p=mesa.git mesa: Unlock mutex on error path. Caught by Coverity (CID 1362021). Caused by commit 015f2207c. --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index b751bf01532..de28606580f 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; }