fix memory leak in input framework.

If the input framework was used to read event streams and
those streams contained records with more than one field, not all
elements of the threading Values were cleaned up.

The reason for this is, that the SendEventStreamEvent function
returned the number of record elements in the outmost record
instead of the number of unrolled elements in the whole vector.

This number is later used to determine how many objects to delete.

Also - add a whole bunch of leak checks for the input framework
that would have caught that and should cover quite a number of
use-cases.
This commit is contained in:
Bernhard Amann 2013-12-05 10:53:12 -08:00
parent 574018f478
commit 504d22b91b
7 changed files with 529 additions and 1 deletions

View file

@ -1468,7 +1468,7 @@ int Manager::SendEventStreamEvent(Stream* i, EnumVal* type, const Value* const *
SendEvent(stream->event, out_vals);
return stream->fields->NumFields();
return stream->num_fields;
}
int Manager::PutTable(Stream* i, const Value* const *vals)