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

Fix Coverity resource leak complaint.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • WT2.9.1, 3.2.12, 3.4.2, 3.5.2
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: