Fix memory leak when retrying in __curstat_layered_init

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • WT12.0.0, 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: Statistics
    • None
    • Storage Engines, Storage Engines - Foundations
    • 396.844
    • None
    • None

      As per BF-44471, there is a memory leak in __curstat_layered_init. Specifically if there are retry attempts, we do not free certain buffers (checkpoint name and stable uri) causing the memory to leak.

      The fix is simple: free these buffers before jumping to retry.

            Assignee:
            Krishen Chovhan
            Reporter:
            Krishen Chovhan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: