<p></p>
<h3>Description</h3>
<p>I have compiled Kamailio with <code>MEMPKG=sys</code> param and Google Sanitizers.<br>
Then started/stopped Kamailio with default config.<br>
After Kamailio stopped the produced report below.</p>
<pre><code>==8042==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 15872 byte(s) in 124 object(s) allocated from:
    #0 0x7f01775ed36f in __interceptor_malloc (/lib64/libasan.so.6+0xab36f)
    #1 0x1296835 in addstr core/cfg.lex:1605
    #2 0x129660e in addchar core/cfg.lex:1589
    #3 0x1287356 in yylex core/cfg.lex:1266
    #4 0x12be8c2 in yyparse core/cfg.tab.c:5508
    #5 0x466c2d in main /tmp/kamailio/src/main.c:2487
    #6 0x7f01768a91e1 in __libc_start_main (/lib64/libc.so.6+0x281e1)

Direct leak of 6784 byte(s) in 53 object(s) allocated from:
    #0 0x7f01775ed36f in __interceptor_malloc (/lib64/libasan.so.6+0xab36f)
    #1 0x1296835 in addstr core/cfg.lex:1605
    #2 0x12894c7 in yylex core/cfg.lex:1395
    #3 0x12be8c2 in yyparse core/cfg.tab.c:5508
    #4 0x466c2d in main /tmp/kamailio/src/main.c:2487
    #5 0x7f01768a91e1 in __libc_start_main (/lib64/libc.so.6+0x281e1)

Direct leak of 6104 byte(s) in 9 object(s) allocated from:
    #0 0x7f01775ed36f in __interceptor_malloc (/lib64/libasan.so.6+0xab36f)
    #1 0xbf1e09 in register_module core/sr_module.c:257
    #2 0xc0c31c in load_module core/sr_module.c:641
    #3 0x12d3b70 in yyparse core/cfg.y:1861
    #4 0x466c2d in main /tmp/kamailio/src/main.c:2487
    #5 0x7f01768a91e1 in __libc_start_main (/lib64/libc.so.6+0x281e1)
</code></pre>
<p>Full report <a href="https://github.com/kamailio/kamailio/files/7387628/kamailio-sanitizer.log">kamailio-sanitizer.log</a></p>
<h3>Additional Information</h3>
<p>Compiled <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/1483ddb735c3fa3ea77b6e2d54ec67584e56e15b/hovercard" href="https://github.com/kamailio/kamailio/commit/1483ddb735c3fa3ea77b6e2d54ec67584e56e15b"><tt>1483ddb</tt></a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2892">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZN3MGEAQIQRDWETMGTUH7KH5ANCNFSM5GNTLMKQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZP6JBWSHKOR5M54XMLUH7KH5A5CNFSM5GNTLMK2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PMG3GLA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2892",
"url": "https://github.com/kamailio/kamailio/issues/2892",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>