From 7c28c9b13f7c924c18920b51f42b1119c3b1e2ee Mon Sep 17 00:00:00 2001 From: grischka Date: Fri, 11 Nov 2016 18:29:45 +0100 Subject: tccgen: inline_functions double free fix Fix double free of the inline function token_string which could happen when an error/longjmp occurred while compiling the inline function. --- tcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index e536f6c..18e049e 100644 --- a/tcc.h +++ b/tcc.h @@ -532,7 +532,7 @@ typedef struct TokenString { /* inline functions */ typedef struct InlineFunc { - TokenString func_str; + TokenString *func_str; Sym *sym; char filename[1]; } InlineFunc; -- cgit v1.3.1