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

Close file descriptor when done reading in checksum_bitflip

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.3.0, 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines

      Resource leak

      The system resource will not be reclaimed and reused, reducing the future availability of the resource. Leak of memory or pointers to system resources
      /tools/checksum_bitflip/checksum_bitflip.c:75: RESOURCE_LEAK 138753 Returning handle opened by "open".
      /tools/checksum_bitflip/checksum_bitflip.c:75: RESOURCE_LEAK 138753 Assigning: "fd" = handle returned from "open(filename, 0)".
      /tools/checksum_bitflip/checksum_bitflip.c:77: RESOURCE_LEAK 138753 Resource "fd" is not freed or pointed-to in "fstat". [Note: The source code implementation of the function has been overridden by a builtin model.]
      /tools/checksum_bitflip/checksum_bitflip.c:82: RESOURCE_LEAK 138753 Resource "fd" is not freed or pointed-to in "read".
      /tools/checksum_bitflip/checksum_bitflip.c:109: RESOURCE_LEAK 138753 Handle variable "fd" going out of scope leaks the handle.

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

              Created:
              Updated:
              Resolved: