ASAN: memory leak when closing inactive connection
Start server:
% ../daemon/kresd -c config.lua
[system] interactive mode
>
Create idle connection:
% (echo; sleep 5) | socat - "TCP:[::1]:5300"
%
Terminate server:
> quit()
nil
>
=================================================================
==24562==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16400 byte(s) in 1 object(s) allocated from:
#0 0x7f56df401d88 in malloc (/lib64/libasan.so.3+0xc6d88)
#1 0x7f56df0e20a4 (/lib64/libkres.so.1+0x160a4)
SUMMARY: AddressSanitizer: 16400 byte(s) leaked in 1 allocation(s).