[reSIProcate] Memory leak in TimerQueue
Hi, all,
While shuting down DUM based user agent, I caught a
memory leak due to TimeLimitTimerQueue. The use case
is explained as follows:
user sign on proxy and then sign off the proxy (via
calling ClientRegistration::removeAll(true), and I
confirmed that there is no other usage of DUM, and
then force shutdown DUM by calling
DUM::forceshutdown(), Visual C++ caught one memory
leak.
After analyzing the shutdown process, I finally found
that the memory came from TimeLimitTimerQueue(). There
are still one timer left in the TimeLimitTimerQueue
(TimeLimitTimerQueue mAppTimers in SipStack). For
each timer, a allocated message is associted, this
message was not freed!
I suggest to free the associated message for each
timer in BaseTimerQueue's destructor.
kaiduan
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca