summaryrefslogtreecommitdiffstats
path: root/src/glsl/apps/tokenise.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/apps/tokenise.c')
-rw-r--r--src/glsl/apps/tokenise.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glsl/apps/tokenise.c b/src/glsl/apps/tokenise.c
index b5092ba35f6..64b0a2f05eb 100644
--- a/src/glsl/apps/tokenise.c
+++ b/src/glsl/apps/tokenise.c
@@ -84,7 +84,10 @@ main(int argc,
free(inbuf);
- sl_pp_context_init(&context);
+ if (sl_pp_context_init(&context)) {
+ free(outbuf);
+ return 1;
+ }
if (sl_pp_tokenise(&context, outbuf, &tokens)) {
sl_pp_context_destroy(&context);