Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-13467

Update free functions to make it consistent with WiredTiger free pattern

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • StorEng - Refinement Pipeline

      Currently inside wiredtiger there are 69 free functions that do not properly clear the pointer that gets passed in. Follow WT-13451 for an example. The problem is that the free functions doesn't take in a double pointer. In the general case, this is okay and does not have any faults with regards to correctness issues. The function does not adhere to the pattern of the free function where the pointer should be cleared. The free function would do a copy-by-value of the pointer that is passed in. The __wt_free would only set the copy-by-value pointer to NULL and not the original pointer.

      This ticket involves investigating the remaining wiredtiger functions and properly fixing the ones that do not clear the original pointer. If the work in this ticket is too much please break it up into multiple tickets.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            jie.chen@mongodb.com Jie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: