fix memory leak of code_id

This commit is contained in:
lixianjing 2022-02-11 09:17:43 +08:00
parent 76de231ed6
commit 2c49e854a7

View File

@ -730,6 +730,7 @@ static ret_t fscript_parser_init(fscript_parser_t* parser, tk_object_t* obj, con
static ret_t fscript_parser_deinit(fscript_parser_t* parser) {
str_reset(&(parser->temp));
TKMEM_FREE(parser->code_id);
fscript_func_call_destroy(parser->first);
return RET_OK;
}