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

QoS 1 msg : memleak when sending PUBACK #16

Closed
JaylinYu opened this issue Feb 4, 2022 · 0 comments
Closed

QoS 1 msg : memleak when sending PUBACK #16

JaylinYu opened this issue Feb 4, 2022 · 0 comments

Comments

@JaylinYu
Copy link
Member

JaylinYu commented Feb 4, 2022

==296652==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 3456 byte(s) in 27 object(s) allocated from:
#0 0x7f3b58900e17 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x564477a9fc50 in nni_zalloc ../src/platform/posix/posix_alloc.c:26
#2 0x564477a8b218 in nni_msg_alloc ../src/core/message.c:380
#3 0x564477abe03a in mqtt_tcptran_pipe_recv_cb ../src/mqtt/transport/tcp/mqtt_tcp.c:619
#4 0x564477a9a62a in nni_taskq_thread ../src/core/taskq.c:47
#5 0x564477a9b806 in nni_thr_wrap ../src/core/thread.c:94
#6 0x564477aa2799 in nni_plat_thr_main ../src/platform/posix/posix_thread.c:266
#7 0x7f3b5883344f in start_thread nptl/pthread_create.c:473

Indirect leak of 1728 byte(s) in 27 object(s) allocated from:
#0 0x7f3b58900e17 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x564477a9fc50 in nni_zalloc ../src/platform/posix/posix_alloc.c:26
#2 0x564477a89ffc in nni_chunk_grow ../src/core/message.c:151
#3 0x564477a8b268 in nni_msg_alloc ../src/core/message.c:390
#4 0x564477abe03a in mqtt_tcptran_pipe_recv_cb ../src/mqtt/transport/tcp/mqtt_tcp.c:619
#5 0x564477a9a62a in nni_taskq_thread ../src/core/taskq.c:47
#6 0x564477a9b806 in nni_thr_wrap ../src/core/thread.c:94
#7 0x564477aa2799 in nni_plat_thr_main ../src/platform/posix/posix_thread.c:266
#8 0x7f3b5883344f in start_thread nptl/pthread_create.c:473

SUMMARY: AddressSanitizer: 5184 byte(s) leaked in 54 allocation(s).

JaylinYu added a commit that referenced this issue Feb 4, 2022
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