mesa: fclose() filename on error.

Pretty useless, as it's in debugging code. Found by Coverity (CID
1257016).
This commit is contained in:
Matt Turner 2016-05-16 15:31:00 -07:00
parent cbb0e3a7e8
commit caab3cd536

View file

@ -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;