Fix memory leak on tables
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2019-06-12 18:47:34 +02:00
parent 22149d9243
commit 0339c44a89
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}