Skip to content

Fix memory leak when mqtt_yield_thread exits problem and delete unuse… #59

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

Merged
merged 1 commit into from
Mar 26, 2023

Conversation

Yangyuanxin
Copy link

1、关于static void mqtt_yield_thread(void arg)函数内存泄漏问题
当内部线程退出时并没有真正释放里面的内存,这是因为platform_thread_init里面的malloc并没有被释放掉,因此当调用mqtt_release接口时会有1个内存泄漏。
2、int mqtt_list_subscribe_topic(mqtt_client_t
c)
该函数中有一个未被使用的变量i在编译时会产生警告,已去除。

@jiejieTop jiejieTop merged commit 835a542 into IoTSharp:master Mar 26, 2023
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