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

BtreeInterfaceImpl::getBulkBuilder leaks a BtreeLogic<BtreeBuilder> object

    • 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.

      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.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: