Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

JuergenKosel
Copy link
Contributor

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

… 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 <[email protected]>
…refore unprocessed pack type

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

Signed-off-by: Juergen Kosel <[email protected]>
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