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

Fix Coverity resource leak complaint.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.9.1, 3.2.12, 3.4.2, 3.5.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: