Skip to content

Memory leak when frequent use of "connection->Connect()" #215

Closed
@EExuke

Description

@EExuke

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
In order to keep the program automatic reconnection when dropped,we need to frequent use of "connection->Connect()" to reconnect. But we find that "connection->Connect()" will make memory leak when frequent called.

Platform/OS/Device
ARM/Linux/

SDK version number
v1.8.4

To Reproduce (observed behavior)
1.make sure network doesn't work.
2.put connect and disconnect in a loop which break until connected.
3.then running it can find memory leak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions