|Subject:||Re: [osip-dev] Newbie for osip|
|Date:||Sun, 14 Dec 2014 19:36:02 +0530|
I am using osip-4.1.0 in Ubuntu 12.04 system.I can confirm that it is crashing (mostly when it tries to free transaction->via).And after 2 minutes, from my main thread I do osip_transaction_free2 call.I have done that as well.Inside call callback, I just call osip_remove_transaction and add the transaction pointer to a linked list.ThanksAustinOn Fri, Dec 12, 2014 at 9:44 AM, Manuel Argüelles <address@hidden> wrote:
On Dec 11, 2014 2:18 AM, "Austin Einter" <address@hidden> wrote:
> In above callback function, If I call only osip_remove_transaction, the registration / un-registration everything goes fine, but with valgrind I can find lot of memory leaks. Also I tried to run it for longer time and find system memory foes down.
> In above callback, If I call osip_transaction_free2 + osip_remove_transaction (which is appropriate), I face crash issue.
> In above callback, If I call osip_transaction_free (osip_remove_transaction api not called), I face crash issue.
Inside the kill callback you shouldn't free your transaction, you should store it in a list and then free it in the main loop (after execute call)
Hope that helps ;)
|[Prev in Thread]||Current Thread||[Next in Thread]|