mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
Call yylex_destroy() to free memory after yyparse()
This commit is contained in:
parent
302ca73198
commit
31401afe78
@ -180,6 +180,7 @@ void insert_register(struct declared_register *reg);
|
||||
|
||||
int yyparse(void);
|
||||
int yylex(void);
|
||||
int yylex_destroy(void);
|
||||
|
||||
char *
|
||||
lex_text(void);
|
||||
|
@ -275,6 +275,8 @@ int main(int argc, char **argv)
|
||||
|
||||
err = yyparse();
|
||||
|
||||
yylex_destroy();
|
||||
|
||||
if (yyin)
|
||||
fclose(yyin);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user