|
From: | Aymeric Moizard |
Subject: | Re: [osip-dev] Memory leaks when registering |
Date: | Wed, 7 May 2014 15:19:01 +0200 |
Each transaction will be release after 30 seconds, the most.2014-05-07 0:16 GMT+08:00 Aymeric Moizard <address@hidden>:
_______________________________________________Hi,sidenote: please subscribe to the address@hidden mailing list before sendingadditionnal emails! (it was rejected)When eXosip2 is starting a transaction, all the allocated data is kept in orderto build the next transaction later.All the context/memory will be cleared when API to remove the registration is calledOR the final registration with expires=0 is completed.I guess this is your use-case?RegardsAymericSubject: Memory leaks when registeringHello, I'm using eXosip3.6.0 when a registered, found that each send a registration message will appear less free memory for 12 k.Could you help me take a look at this question?
Below is the code:eXosip_event_t *je = NULL;osip_message_t *reg = NULL;eXosip_lock();g_register_id = eXosip_register_build_initial_register(from,to,NULL,expires,®);osip_message_set_authorization(reg,"Capability algorithm=\"H:MD5"\");if(0 > g_register_id){eXosip_unlock();return -1;}ret = eXosip_register_send_register(g_register_id,reg);eXosip_unlock();while(1){je = eXosip_event_wait(0,200);...}When I registered failure,i'll call:eXosip_event_free(je);eXosip_message_free();
I did some tests, and eventually found:transaction in function eXosip_register_send_register has not been released.Is that so?What should I do to release the resources?Would you please help me!!!!!!!!Thanks!
--
Antisip - http://www.antisip.com
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev
_______________________________________________
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev
[Prev in Thread] | Current Thread | [Next in Thread] |