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. 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
        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