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

QModbusTcpClient has a memory leak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.15.1
    • SerialBus: MOD Bus
    • None
    • 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. 111.bmp
          111.bmp
          4.67 MB
        2. 222.png
          222.png
          636 kB
        3. 333.png
          333.png
          452 kB
        4. 444.png
          444.png
          460 kB
        5. master_v3.tar
          181 kB
        6. master.tar
          200 kB
        7. masterMem.png
          masterMem.png
          154 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes