2010/3/16  <beach...@me.com>:
> Just to make sure I am not doing something wrong, my home gets allocated when 
> my program starts, and I do not destroy it until my (long running) program 
> ends.  So although it would not be a true memory leak it sounds like it would 
> cause memory growth if I do not free it, and thus I would be better to free 
> it immediately after nta_incoming_reply(), is that correct ?

Yes, that is right.

> BTW, while we are on the subject of memory allocation, I am also using 
> messages using su_msg_create() to send msgs between my root and clone tasks, 
> where I use the feature to have some user-specified data area allocated with 
> the message, and I never explicitly need to free that memory, correct?

Yes, you are correct. The data-area is allocated with a single
malloc() along with the main su message.

--Pekka


-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to