mesa: fclose() filename on error.
Pretty useless, as it's in debugging code. Found by Coverity (CID 1257016).
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user