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

QModbusTcpClient has a memory leak

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Component/s: SerialBus: MOD Bus
    • Labels:
      None
    • Environment:
      Windows 10/Linux

      Description

      QModbusReply has a memory leak after the  executing sendReadRequest()

      steps

      auto *reply = _modbusClient->sendReadRequest(...) // create a dynamic object  

      ...

      reply->deleteLater() // delete object after using it

      deleteLater() executing  does not always delete memory or partially delete it 

      This memory leak is clearly visible with frequent call  sendReadRequest()

       

        Attachments

        1. masterMem.png
          masterMem.png
          154 kB
        2. master.tar
          200 kB
        3. master_v3.tar
          181 kB
        4. 444.png
          444.png
          460 kB
        5. 333.png
          333.png
          452 kB
        6. 222.png
          222.png
          636 kB
        7. 111.bmp
          111.bmp
          4.67 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            heimrich Karsten Heimrich
            Reporter:
            lia Irina Lo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes