Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102988

Memory leak using QFile::copy()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.12.12
    • None
    • Linux/X11

    Description

      A successful  call to QFile::copy() creates a memory leak.
      Attached is a minimal reproductible example.

      Memory leak was observed using valgrind with the following command line parameters :

      valgrind --tool=memcheck --undef-value-errors=no --leak-resolution=med --leak-check=yes --errors-for-leak-kinds=definite --show-leak-kinds=definite --num-callers=55 --log-file=valgrind-test-out.txt ./QtFileLeak

      Please note the leak only occurs on a successful copy. On a failed one there is no leak.

      Attachments

        Activity

          People

            thiago Thiago Macieira
            mickael.reporting Mickaël Da Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: