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

Fix Coverity resource leak complaint.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.12, WT2.9.1, 3.5.2, 3.4.2
    • Labels:
      None

      Description

      Coverity is convinced there's a resource leak in the code path through __wt_metadata_search:

      __wt_metadata_search ->
          __wt_turtle_read ->
              __metadata_config ->
                  __wt_config_collapse ->
                      __wt_strndup
      

      and variants of this complaint are currently 25% of our Coverity issues.

      Try and convince Coverity there's really no problem here.

        Attachments

          Activity

            People

            • Assignee:
              keith.bostic Keith Bostic
              Reporter:
              keith.bostic Keith Bostic
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: