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

Coverity analysis defect 114075: Resource leak

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 2
    • Storage Engines 2020-03-09, Storage Engines 2020-03-23

      Leak of memory or pointers to system resources

      Defect 114075 (STATIC_C)
      Checker RESOURCE_LEAK (subcategory none)
      File: /test/csuite/incr_backup/main.c
      Function main
      /test/csuite/incr_backup/main.c, line: 804
      Assigning: "tinfo.table" = storage returned from "dcalloc(tinfo.table_count, 40UL)".

              tinfo.table = dcalloc(tinfo.table_count, sizeof(tinfo.table[0]));
      

      /test/csuite/incr_backup/main.c, line: 844
      Resource "&tinfo.table[slot]" is not freed or pointed-to in "table_changes".

                          table_changes(session, &tinfo.table[slot]);
      

      /test/csuite/incr_backup/main.c, line: 844
      Resource "&tinfo.table[slot]" is not freed or pointed-to in "table_changes".

                          table_changes(session, &tinfo.table[slot]);
      

      /test/csuite/incr_backup/main.c, line: 844
      Resource "&tinfo.table[slot]" is not freed or pointed-to in "table_changes".

                          table_changes(session, &tinfo.table[slot]);
      

      /test/csuite/incr_backup/main.c, line: 870
      Variable "tinfo" going out of scope leaks the storage "tinfo.table" points to.

              return (0);
      

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: