Skip to content

Fix memory management issues in MqttClient#147

Open
alltheblinkythings wants to merge 3 commits intoSmingHub:masterfrom
alltheblinkythings:mqtt-fixes
Open

Fix memory management issues in MqttClient#147
alltheblinkythings wants to merge 3 commits intoSmingHub:masterfrom
alltheblinkythings:mqtt-fixes

Conversation

@alltheblinkythings
Copy link

Addresses some routine crashes when using the MqttClient under SmingRTOS.

  1. 'buf' double free in MemoryDataStream due to a naive copy of the object during the function call.
  2. msgBuffer always leaks.
This makes bugs like that in ec0f864 become a compile-time error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants