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

关于内存泄露问题 #137

Open
mcubuilder opened this issue Apr 8, 2019 · 0 comments
Open

关于内存泄露问题 #137

mcubuilder opened this issue Apr 8, 2019 · 0 comments

Comments

@mcubuilder
Copy link

响应rrpc时只要加了messageID就会有内存泄露,不加就不会有,加上messageID信息可以正常发送物联网平台也可以接收到反馈;messageID正确与否都会有泄露
以下用法有内存泄露
#define ALINK_RRPC_RESPONSE "/sys/"PRODUCT_KEY"/"DEVICE_NAME"/rrpc/response/1067567546"
rc = IOT_MQTT_Publish(pclient, ALINK_RRPC_RESPONSE, &topic_msg);
修改成如下就不会有泄露,当然收不到数据
#define ALINK_RRPC_RESPONSE "/sys/"PRODUCT_KEY"/"DEVICE_NAME"/rrpc/response
rc = IOT_MQTT_Publish(pclient, ALINK_RRPC_RESPONSE, &topic_msg);

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

No branches or pull requests

1 participant