接收到 MQTT 数据后, 出现内存泄漏

发布于 2026-08-14 18: 18: 07

DEMO_MSG_SOCKET_CREATE
local ip : 192. 168. 8. 249
local port : 4090 udp_socket_num: 1
step1: init mqtt lib.
step2: establishing TCP connection.
step3: establishing mqtt connection.
step4: subscribe mqtt
step5: start the Heart-beat preservation timer ok
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 6
Wi: 75
==" heart timer 0
send heart ping
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 6
payload_id: 123
payload_id: 123
light_brightness: 255
light_ct: 255
light_r: 255
light_g: 255
light_b: 6
Assertion "malloc () must return aligned memory" failed at line 214 in mem. c
Assertion "malloc () must return aligned memory" failed at line 214 in mem. c
Assertion "memp_malloc: memp properly aligned" failed at line 281 in memp. c
Assertion "memp_free: mem properly aligned" failed at line 365 in memp. c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem. c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem. c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem. c
Assertion "detected mem overflow in pool SYS_TIMEOUT" failed at line 109 in mem. c

查看更多

关注者
0
被浏览
21
1 个回答
abcd
abcd 认证专家 1 分钟前
我只是个路过的老年人~

这个跟你的应用层代码实现有关, 只贴 log 出来看不出问题来, 需要把相关代码贴出来, 可以删除敏感信息.

撰写答案

请登录后再发布答案, 点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览