[sr-dev] [kamailio/kamailio] core/cfg has memory leak if string value is set (#2094)

Henning Westerholt notifications at github.com
Mon Oct 7 18:45:27 CEST 2019


I looked today into it as well. I could reproduce it with current git master.

```
 root at proxy-1:/usr/local/src/kamailio-devel# grep "^Oct  7 18:38.* qm_status:.*alloc'd" /var/log/syslog | cut -d: -f6- | sort | uniq -c | sort -n | grep core/cfg/cfg
      1            alloc'd from core: core/cfg/cfg_struct.c: cfg_shmize(217)
      1            alloc'd from core: core/cfg/cfg_struct.c: sr_cfg_init(324)
      1            alloc'd from core: core/cfg/cfg_struct.c: sr_cfg_init(336)
      1            alloc'd from core: core/cfg/cfg_struct.c: sr_cfg_init(348)
      1            alloc'd from core: core/cfg/cfg_struct.c: sr_cfg_init(355)
      1            alloc'd from core: core/cfg/cfg_struct.c: sr_cfg_init(362)
      2            alloc'd from core: core/cfg/cfg_ctx.c: cfg_register_ctx(47)
      2            alloc'd from core: core/cfg/cfg_struct.c: cfg_clone_global(627)
     80            alloc'd from core: core/cfg/cfg_ctx.c: cfg_set_now(559)
     81            alloc'd from core: core/cfg/cfg_struct.c: cfg_child_cb_new(830)
     84            alloc'd from core: core/cfg/cfg_struct.c: cfg_clone_str(130)
root at proxy-1:/usr/local/src/kamailio-devel# kamcmd core.version
kamailio 5.4.0-dev0 (x86_64/linux) 7cd263-dirty
```


-- 
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/2094#issuecomment-539102437
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191007/3a28be42/attachment.html>


More information about the sr-dev mailing list