Skip to content

Fix memory leak - #13

Merged
peter-wangxu merged 3 commits into
mainfrom
fix-memory-leak
Sep 10, 2025
Merged

peter-wangxu merged 3 commits into
mainfrom
fix-memory-leak

Conversation

@Li-haokai

Copy link
Copy Markdown
Collaborator

修复pub/sub/thingmodel中的内存泄漏问题

@peter-wangxu peter-wangxu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/iot/iot_mqtt.c
if (new_sub_topic_maps == NULL) {
// realloc 失败,保留原有 sub_topic_maps
lwsl_err("%s: realloc sub_topic_maps failed\n", __func__);
lwsl_err("%s: realloc sub_topic_maps failed\\n", __func__);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?\\n

@peter-wangxu
peter-wangxu merged commit 3e447d3 into main Sep 10, 2025
15 checks passed
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.

2 participants