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

Memory leak in qabstractitemmodeltester.cpp's compare helper

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.15
    • Fix Version/s: 5.15.1
    • Component/s: Testing: qtestlib
    • Labels:
      None
    • Commits:
      fe4794f70ecc4a302b22ad26614203a70c049a13 (qt/qtbase/dev) 47bf767d8da6f1dd13e0fcb3def2abf804d21670 (qt/qtbase/5.15)

      Description

      The implementation uses QTest::toString, which strdup's the string data. Callers need to free the string.

       

      Reported by coverity with CIDs 186979 and 186980

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              vhilshei Volker Hilsheimer
              Reporter:
              vhilshei Volker Hilsheimer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes