fix another memory lead (when updating tables).

Adjust twotables testcase - now it is faster. Shorten the output
-- because of threading, the results did not always come out in
the same order (it depends on which thread manages to sneak in
the results into the queue earlier).
This commit is contained in:
Bernhard Amann 2012-05-29 09:21:16 -07:00
parent b37f9e38f6
commit f4864c69af
3 changed files with 41 additions and 214 deletions

View file

@ -1123,6 +1123,7 @@ void Manager::EndCurrentSend(ReaderFrontend* reader)
val = stream->tab->Lookup(idx);
assert(val != 0);
predidx = ListValToRecordVal(idx, stream->itype, &startpos);
Unref(idx);
ev = new EnumVal(BifEnum::Input::EVENT_REMOVED, BifType::Enum::Input::Event);
}
@ -1594,7 +1595,7 @@ RecordVal* Manager::ListValToRecordVal(ListVal* list, RecordType *request_type,
(*position)++;
}
rec->Assign(i, fieldVal);
rec->Assign(i, fieldVal->Ref());
}
return rec;