Skip to content

Fix thoretical possible memory leaks related to topic in error case - #1521

Open
JuergenKosel wants to merge 2 commits into
eclipse-paho:developfrom
JuergenKosel:fix-memleak-issue-1518
Open

Fix thoretical possible memory leaks related to topic in error case#1521
JuergenKosel wants to merge 2 commits into
eclipse-paho:developfrom
JuergenKosel:fix-memleak-issue-1518

Conversation

@JuergenKosel

Copy link
Copy Markdown

This pull request:

  • MQTTPacket_publish(): Release in error case the topic when also the pack structore is deleted, which hold the only pointer to topic
  • MQTTAsync_receiveThread(): Add an error-log entry in case of unexpectedly not handled packages

Juergen Kosel added 2 commits September 3, 2024 16:20
… MQTTPacket_publish()

As seen in
eclipse-paho#1518
the memory allocated for pack-topic were not released in all cases.

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
…refore unprocessed pack type

Unprocessed pack lead to memory leak, as in
eclipse-paho#1518

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant