2010/3/15 <beach...@me.com>: > Simple question....when I use sip_X_make( home, char *) and then attach that > header to a response message I am sending via nta, do I need to explicitly > su_free that header? i.e. > > sip_contact_t *c1 = sip_contact_make( home, szContact1 ) ; > nta_incoming_treply( irq, SIP_300_MULTIPLE_CHOICES, SIPTAG_CONTACT( c1 ), > TAG_END() ) ; > //DO I NEED TO su_free this?
Nope, it will be freed when your home is destroyed/unref:ed. > If I do need to free it, can I do so immediately after calling > nta_incoming_reply? You can do it immediately after calling nta_incoming_reply(). -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ Download Intel® 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