mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
mesa: fclose() filename on error.
Pretty useless, as it's in debugging code. Found by Coverity (CID 1257016).
This commit is contained in:
parent
cbb0e3a7e8
commit
caab3cd536
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue