gerald-lindsly / mongo-delphi-driver

MongoDB Driver for Delphi
Apache License 2.0
47 stars 26 forks source link

Memory leak #8

Closed hippowar closed 9 years ago

hippowar commented 9 years ago

Hi,

Memory-leak in MongoBson.pas. TBson.value(name: string): variant; var i : TBsonIterator; begin i := find(name); if i = nil then Result := Null else begin Result := i.value; // Here, i (TBsonIterator) need free. i.Free; end; end;

gerald-lindsly commented 9 years ago

i updated the repo to reflect your change. Thanks for your input.