The fields udpMd.numList and tcpMd.numList of the library statistics are not decremented correctly by tlm_delListener().
How to reproduce:
tlm_addListener() (any ComId is ok for reproducing the issue)TRDP_FLAGS_TCP flag)There are two issues in the code that decrements the counters:
appHandle->mdDefault.flags) are checked to select which counter has to be decremented; the flags registered on the listenHandle should be used instead.listenHandle is NULL or not found (dequeued == FALSE); this is not correct (IMHO).Please consider the attached patch.
I forgot to mention that the issue affects 2.0.3.0 too.
Code changed like proposed.