<p></p>
<blockquote>
<p dir="auto">Thanks for this PR! I noticed some functions return pointers that are then used and later freed. I guess that they have to be checked if they are <code class="notranslate">NULL</code>, expecting there will be crashes when they are used and they are <code class="notranslate">NULL</code>.</p>
</blockquote>
<p dir="auto">Added NULL checking to the PR.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3171#issuecomment-1170875583">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOBB5EPKGCA5YORLU3VRVFJPANCNFSM52HN3ICQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZMAWK3NBWS4X43BTGLVRVFJPA5CNFSM52HN3IC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIXFCJPY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3171/c1170875583</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3171#issuecomment-1170875583",
"url": "https://github.com/kamailio/kamailio/pull/3171#issuecomment-1170875583",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>