jiridanek commented on pull request #1080: URL: https://github.com/apache/qpid-dispatch/pull/1080#issuecomment-803367740
This also takes care of the related leaks ``` 9: ================================================================= 9: ==2292==ERROR: LeakSanitizer: detected memory leaks 9: 9: Indirect leak of 216 byte(s) in 1 object(s) allocated from: 9: #0 0x7fa3b6a8bdc6 in calloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10ddc6) 9: #1 0x7fa3b63ce928 in qd_http_server ../src/http-libwebsockets.c:963 9: #2 0x7fa3b63b5ec7 in qd_server ../src/server.c:1364 9: #3 0x7fa3b6207fff in qd_dispatch_prepare ../src/dispatch.c:330 9: #4 0x7fa3b1208ff4 (/lib/x86_64-linux-gnu/libffi.so.7+0x6ff4) 9: #5 0x7ffce6d1b37f ([stack]+0x1f37f) 9: 9: Indirect leak of 64 byte(s) in 1 object(s) allocated from: 9: #0 0x7fa3b6a8caa5 in posix_memalign (/lib/x86_64-linux-gnu/libasan.so.5+0x10eaa5) 9: #1 0x7fa3b6270a94 in sys_cond ../src/posix/threading.c:77 9: #2 0x7fa3b63ce96d in work_queue_init ../src/http-libwebsockets.c:231 9: #3 0x7fa3b63ce96d in qd_http_server ../src/http-libwebsockets.c:965 9: #4 0x7fa3b63b5ec7 in qd_server ../src/server.c:1364 9: #5 0x7fa3b6207fff in qd_dispatch_prepare ../src/dispatch.c:330 9: #6 0x7fa3b1208ff4 (/lib/x86_64-linux-gnu/libffi.so.7+0x6ff4) 9: #7 0x7ffce6d1b37f ([stack]+0x1f37f) 9: 9: ----------------------------------------------------- 9: Suppressions used: 9: count bytes template 9: 1 1160 run_unit_tests.c 9: 1 64 sys_mutex 9: 1 56 qdr_core_subscribe 9: 9 5080 ^_PyObject_Realloc 9: 540 862547 ^PyObject_Malloc$ 9: 1 32 ^PyThread_allocate_lock$ 9: 4 9897 ^PyMem_Malloc$ 9: 1 856 ^_PyObject_GC_Resize$ 9: 1 295 ^_PyBytes_Resize$ 9: 5 1058064 /libwebsockets.so 9: ----------------------------------------------------- 9: 9: SUMMARY: AddressSanitizer: 280 byte(s) leaked in 2 allocation(s). 7/37 Test #9: unit_tests .....................................***Failed 2.03 sec ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org