< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] memory leak on ServerPublication.


resiprocate-devel, Hello
 
In code ServerPublication::updateMatchingSubscriptions(), ServerPublication release the ownership of mLastBody.mContents and  mLastBody.mAttributes.
I don't understand why do it like this, and I found that it will result in memory leaks because no one will delete object mContents and mAttributes, ServerPublication lost the ownership of them.
 
ServerPublication::updateMatchingSubscriptions()
{
   ........
   //Noiile:MEMORY LEAKS!!!
   //mLastBody.mContents.release(); 
   //mLastBody.mAttributes.release();
}
 
2005-11-25