Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1171

Memory leak in _cbson_element_to_dict

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.1, 3.4
    • Affects Version/s: None
    • Component/s: None
    • None

      Reported with this pull request:

      https://github.com/mongodb/mongo-python-driver/pull/316

      Inflating RawBSONDocument causes a memory leak when the C extensions are installed. The problem is caused by using the O format specifier instead N for Py_BuildValue in _cbson_element_to_dict. Iterating a cursor from a collection that uses RawBSONDocument for document class leaks two references for every cursor batch.

            Assignee:
            luke.lovett Luke Lovett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: