I pushed a patch to fix the leak -- it is in master branch
79459d3f87731309641794a2b881ee1cacc5e1f2
If you test it and report it solves the leak, I will backport.
For the crash, not sure it is related, can you get the output in gdb for the next
commands?
```
frame 4
p *cmd
```
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/296#issuecomment-134593966