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

Fix metadata configuration string resource leak in meta_turtle.c

    • 1
    • Storage - Ra 2022-04-04

      CID 121895 (#1 of 1): Resource leak (RESOURCE_LEAK)28. leaked_storage: Variable metadata_conf going out of scope leaks the storage it points to. 

      This occurs at the end of metadata_load_hot_backup as a result of this statement:

          WT_ERR(__wt_metadata_search(session, filename, &metadata_conf)); 

       metadata_conf needs to be freed at the bottom of the function (and initialized at top).

       

            Assignee:
            jie.chen@mongodb.com Jie Chen
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: