Fix memory leaks resulting from 'when' and 'return when' statements.

Addresses #946.
This commit is contained in:
Jon Siwek 2013-02-19 16:19:16 -06:00
parent 7e5115460c
commit d158c7ffdf
6 changed files with 106 additions and 6 deletions

View file

@ -696,7 +696,9 @@ string FuncType::FlavorString() const
FuncType::~FuncType()
{
Unref(args);
Unref(arg_types);
Unref(yield);
}
BroType* FuncType::YieldType()