projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a83e9af
)
mesa: Unlock mutex on error path.
author
Matt Turner
<mattst88@gmail.com>
Sun, 22 May 2016 14:00:34 +0000
(07:00 -0700)
committer
Matt 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index b751bf015328f35095ad7f018b56873124b24746..de28606580f0d8014b112a61b24964d284133a65 100644
(file)
--- 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;
}