glsl: Fix memory leak in glsl_lexer.ll
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Wed, 3 Sep 2014 13:38:31 +0000 (16:38 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 23 Sep 2014 07:25:02 +0000 (10:25 +0300)
commit5a6ec26aec6c3a16df18270ec6cbc7e9fd3757cf
tree3063bfad4db926ae8ebe5f450f4800bf6d6a6f5f
parent6c9d67118a21e3713e006da4a03a584fb8268d92
glsl: Fix memory leak in glsl_lexer.ll

Running fast clear glClear with SNB caused Valgrind to
complain about this.

v2: line 237 fixed glClear from leaking memory, other
strdups are also now changed to ralloc_strdups but I
don't know what effect those have. At least no changes in
my Piglit quick run.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_lexer.ll