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
          4.67 MB
          Irina Lo
        2. 222.png
          636 kB
          Irina Lo
        3. 333.png
          452 kB
          Irina Lo
        4. 444.png
          460 kB
          Irina Lo
        5. master_v3.tar
          181 kB
          Irina Lo
        6. master.tar
          200 kB
          Irina Lo
        7. masterMem.png
          154 kB
          Irina Lo

        Activity

          People

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

            Dates

              Created:
              Updated: