Prevent memory leaks from generators

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.5.2
    • Affects Version/s: 1.5.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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.

              Assignee:
              Andreas Braun
              Reporter:
              Andreas Braun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: