mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +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 yyparse(void);
|
||||||
int yylex(void);
|
int yylex(void);
|
||||||
|
int yylex_destroy(void);
|
||||||
|
|
||||||
char *
|
char *
|
||||||
lex_text(void);
|
lex_text(void);
|
||||||
|
@ -275,6 +275,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
err = yyparse();
|
err = yyparse();
|
||||||
|
|
||||||
|
yylex_destroy();
|
||||||
|
|
||||||
if (yyin)
|
if (yyin)
|
||||||
fclose(yyin);
|
fclose(yyin);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user