diff --git a/lexer.c b/lexer.c index d8fcf2e..9956e0f 100644 --- a/lexer.c +++ b/lexer.c @@ -155,6 +155,9 @@ void lex_close(lex_file *lex) mem_d(lex->frames[i].name); MEM_VECTOR_CLEAR(lex, frames); + if (lex->modelname) + mem_d(lex->modelname); + if (lex->file) fclose(lex->file); if (lex->tok)