Fix memory leak on tables
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
22149d9243
commit
0339c44a89
|
@ -435,6 +435,7 @@ BoundExpression *Binder::BindTableExpression(ParsedTableExpression *expression)
|
|||
this -> _scope = currentScope;
|
||||
|
||||
auto tableType = shared_ptr<TableScriptType>(new TableScriptType(tableScope, innerScope->GetDeepestScope()));
|
||||
delete innerScope;
|
||||
|
||||
return new BoundTableExpression((BoundBlockStatement*)block, tableType, expression->GetStartPosition(), expression->GetLength());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue