Module: Mesa Branch: master Commit: caab3cd5361d8848e8f8957f697aff7bca5fc6b3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=caab3cd5361d8848e8f8957f697aff7bca5fc6b3
Author: Matt Turner <matts...@gmail.com> Date: Mon May 16 15:31:00 2016 -0700 mesa: fclose() filename on error. Pretty useless, as it's in debugging code. Found by Coverity (CID 1257016). --- src/mesa/main/dlist.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 6dfb84b..b15826c 100644 --- 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; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit