diff options
author | Vinson Lee <vlee@vmware.com> | 2009-11-17 12:00:22 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-11-17 12:00:22 -0800 |
commit | 11905da8836822f7dd60c84b5eefc72e46c94b50 (patch) | |
tree | 77dabe92af34b972c4ddf80625bf0ae43220c124 /progs | |
parent | 6418ce7df6e9f12cb1ad4ae39580e175a20a02fb (diff) |
progs/util: Fix memory leak if fread returns 0 in CompileShaderFile.
Diffstat (limited to 'progs')
-rw-r--r-- | progs/util/shaderutil.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/util/shaderutil.c b/progs/util/shaderutil.c index af50d64f51..aebf23a78c 100644 --- a/progs/util/shaderutil.c +++ b/progs/util/shaderutil.c @@ -95,6 +95,7 @@ CompileShaderFile(GLenum shaderType, const char *filename) shader = CompileShaderText(shaderType, buffer); } else { + fclose(f); free(buffer); return 0; } |