ClosureFrame takes ownership of its captured vals.

This commit is contained in:
Zeke Medley 2019-06-21 12:31:10 -07:00
parent d468df2a21
commit b280c62ea5
2 changed files with 4 additions and 3 deletions

View file

@ -317,7 +317,6 @@ Val* BroFunc::Call(val_list* args, Frame* parent) const
return Flavor() == FUNC_FLAVOR_HOOK ? val_mgr->GetTrue() : 0;
}
// f will hold the closure & function's values
Frame* f = new Frame(frame_size, this, args);
if (this->closure)
{