Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15473

BtreeInterfaceImpl::getBulkBuilder leaks a BtreeLogic<BtreeBuilder> object

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • Hide

      Found by inspection based on memory leak reported by leak sanitizer.

      Show
      Found by inspection based on memory leak reported by leak sanitizer.

    Description

      The BtreeInterfaceImpl::getBulkBuilder method passes a BtreeLogic<OnDiskFormat>::Builder object (new'ed in BtreeLogic<OnDiskFormat>::newBuilder) to the constructor of a BtreeBuilderInterfaceImpl<OnDiskFormat> object, which appears to take ownership of the Builder object. However, the destructor of the BtreeBuilderInterfaceImpl object does not delete the BtreeLogic<OnDiskFormat>::Builder object, and no other references exist.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow
            andrew.morrow@mongodb.com Andrew Morrow
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: