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

Memleak while receving CONNACK #2

Closed
JaylinYu opened this issue Jan 31, 2022 · 1 comment
Closed

Memleak while receving CONNACK #2

JaylinYu opened this issue Jan 31, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JaylinYu
Copy link
Member

Describe the bug
memleak while receving mqtt connack

Expected behavior
connack gets freed

Actual Behavior
nobody cares connack

To Reproduce
just connect

Direct leak of 128 byte(s) in 1 object(s) allocated from:
#0 0x7f3182f53e17 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x55c9aefeece8 in nni_zalloc ../src/platform/posix/posix_alloc.c:26
#2 0x55c9aefda2b0 in nni_msg_alloc ../src/core/message.c:380
#3 0x55c9af00071b in nni_mqtt_msg_alloc ../src/supplemental/mqtt/mqtt_msg.c:38
#4 0x55c9af00abc3 in mqtt_tcptran_pipe_nego_cb ../src/mqtt/transport/tcp/mqtt_tcp.c:357
#5 0x55c9aefe96c2 in nni_taskq_thread ../src/core/taskq.c:47
#6 0x55c9aefea89e in nni_thr_wrap ../src/core/thread.c:94
#7 0x55c9aeff1831 in nni_plat_thr_main ../src/platform/posix/posix_thread.c:266
#8 0x7f3182e8644f in start_thread nptl/pthread_create.c:473

Indirect leak of 128 byte(s) in 1 object(s) allocated from:
#0 0x7f3182f53e17 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
#1 0x55c9aefeece8 in nni_zalloc ../src/platform/posix/posix_alloc.c:26
#2 0x55c9af000695 in nni_mqtt_msg_proto_data_alloc ../src/supplemental/mqtt/mqtt_msg.c:17
#3 0x55c9af000759 in nni_mqtt_msg_alloc ../src/supplemental/mqtt/mqtt_msg.c:42
#4 0x55c9af00abc3 in mqtt_tcptran_pipe_nego_cb ../src/mqtt/transport/tcp/mqtt_tcp.c:357
#5 0x55c9aefe96c2 in nni_taskq_thread ../src/core/taskq.c:47
#6 0x55c9aefea89e in nni_thr_wrap ../src/core/thread.c:94
#7 0x55c9aeff1831 in nni_plat_thr_main ../src/platform/posix/posix_thread.c:266
#8 0x7f3182e8644f in start_thread nptl/pthread_create.c:473

@JaylinYu JaylinYu added the bug Something isn't working label Jan 31, 2022
@JaylinYu JaylinYu self-assigned this Jan 31, 2022
@JaylinYu
Copy link
Member Author

fixed in #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant