projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc74cb4
)
call grammar_alloc_free() to fix memleaks
author
Brian
<brian@yutani.localnet.net>
Fri, 20 Apr 2007 18:59:26 +0000
(12:59 -0600)
committer
Brian
<brian@yutani.localnet.net>
Sat, 21 Apr 2007 16:05:05 +0000
(10:05 -0600)
src/mesa/shader/slang/slang_preprocess.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_preprocess.c
b/src/mesa/shader/slang/slang_preprocess.c
index
66a6a98
..
72281ed
100644
(file)
--- a/
src/mesa/shader/slang/slang_preprocess.c
+++ b/
src/mesa/shader/slang/slang_preprocess.c
@@
-1138,10
+1138,12
@@
preprocess_source (slang_string *output, const char *source, grammar pid, gramma
goto error;
}
+ grammar_alloc_free(prod);
pp_state_free (&state);
return GL_TRUE;
error:
+ grammar_alloc_free(prod);
pp_state_free (&state);
return GL_FALSE;
}