Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-7292 cppcheck checks of ReactOS code
  3. CORE-8207

cmd: mismatching allocation and deallocation

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • Major
    • 0.3.17
    • Applications
    • None

    Description

      [reactos/base/shell/cmd/replace.c:191]: (error) Mismatching allocation and deallocation: buffer

      buffer is allocated with VirtualAlloc() but freed with cmd_free() with just translates to crt free(), probably corrupts the heap and leaks the buffer. Use VirtualFree() instead.

      Attachments

        Activity

          People

            ThFabba ThFabba
            encoded encoded
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: