projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb0e3a
)
mesa: fclose() filename on error.
author
Matt Turner
<mattst88@gmail.com>
Mon, 16 May 2016 22:31:00 +0000
(15:31 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Wed, 18 May 2016 18:09:37 +0000
(11:09 -0700)
Pretty useless, as it's in debugging code. Found by Coverity (CID
1257016).
src/mesa/main/dlist.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/dlist.c
b/src/mesa/main/dlist.c
index
6dfb84b
..
b15826c
100644
(file)
--- a/
src/mesa/main/dlist.c
+++ b/
src/mesa/main/dlist.c
@@
-10054,8
+10054,12
@@
print_list(struct gl_context *ctx, GLuint list, const char *fname)
}
dlist = _mesa_lookup_list(ctx, list);
- if (!dlist)
+ if (!dlist) {
+ if (fname) {
+ fclose(f);
+ }
return;
+ }
n = dlist->Head;