[sr-dev] [kamailio/kamailio] ursloc has a memory leak if db_mode is DB_ONLY and calling reg_fetch_contacts() (#2089)

Victor Seva notifications at github.com
Thu Oct 3 14:32:28 CEST 2019


after the patch
```
 1(4216) DEBUG: usrloc [udomain.c:996]: udomain_contact_expired_cb(): calling contact expired records - cycle [1]
 1(4216) DEBUG: usrloc [ul_callback.h:83]: run_ul_callbacks(): contact=0x7f942fc56bd0, callback type 8/8, id 0 entered
 1(4216) exec: *** cfgtrace:request_route=[usrloc:contact-expired] c=[/kamdev/kamailio.cfg] l=1015 a=63 n=assign
 1(4216) exec: *** cfgtrace:request_route=[usrloc:contact-expired] c=[/kamdev/kamailio.cfg] l=1016 a=25 n=xinfo
 1(4216) INFO: <script>: expired contact for 1001-whatever uri:sip:1001-whatever at localhost 1(4216) exec: *** cfgtrace:request_route=[usrloc:contact-expired] c=[/kamdev/kamailio.cfg] l=1017 a=27 n=reg_fetch_contacts
 1(4216) exec: *** cfgtrace:request_route=[usrloc:contact-expired] c=[/kamdev/kamailio.cfg] l=1022 a=16 n=if
 1(4216) exec: *** cfgtrace:request_route=[usrloc:contact-expired] c=[/kamdev/kamailio.cfg] l=1021 a=25 n=xinfo
 1(4216) INFO: <script>: 1001-whatever has 1 contacts left                                      
 1(4216) exec: *** cfgtrace:request_route=[usrloc:contact-expired] c=[/kamdev/kamailio.cfg] l=1023 a=2 n=return
```

```
sh /kamdev/shm_dump.sh 1
      1  qm_status:           alloc'd from usrloc: dlist.c: new_dlist(557)
      1  qm_status:           alloc'd from usrloc: dlist.c: new_dlist(565)
      1  qm_status:           alloc'd from usrloc: udomain.c: new_udomain(91)
      1  qm_status:           alloc'd from usrloc: udomain.c: new_udomain(98)
      1  qm_status:           alloc'd from usrloc: ul_callback.c: init_ulcb_list(45)
      1  qm_status:           alloc'd from usrloc: ul_callback.c: register_ulcb(94)
      3  qm_status:           alloc'd from usrloc: udomain.c: build_stat_name(56)
```
no ucontact in shared mem 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2089#issuecomment-537924707
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191003/2c942753/attachment.html>


More information about the sr-dev mailing list