-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 1.5.1
-
Component/s: None
-
Labels:None
In MongoDB\Model\CachingIterator we wrap a traversable in a generator. However, when freeing the iterator instance, the generator sometimes gets left behind. When used in conjunction with a MongoDB cursor, this means that the cursor potentially stays open if it wasn't exhausted. This can cause significant memory leaks.