Hi,
Regarding memory managment in multi-threaded environment need
clarification.
1. Consider that su_home_t *agent_home is a global variable
2. Memory is allocated in a thread t1 for the same
3. Created some sip headers using agent_home as home memory in thread t2
4. freeing the allocated memory and agent_home in t3
Is my approcach is correct?
Actually while freeing the memory i am getting assertion failue in
su_alloc.c
calling su_free causing asseryion failure at this point
----From su_alloc.c------------
allocation = su_block_find(sub, data);
assert(allocation);
Regards
Kishore
--
Thanks ®ards
G.Krishna Kishore
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel