<p><b>@ycaner06</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2124#discussion_r344477296">src/modules/nathelper/nathelper.c</a>:</p>
<pre style='color:#555'>> +    if(memchr_pointer == NULL) {
+               LM_ERR("No alias param found for port\n");
+               return ;
+       } else {
+               port.len = memchr_pointer - port.s;
+               i=i+port.len;
+       }
+
+       //last char is proto 0,1,2,3,4..7
+       proto.s= &port.s[port.len+1];
+       proto_type_int_to_str(atoi(proto.s), &proto);
+
+       LM_DBG("Host [%.*s][port: %.*s][proto: %.*s] \r\n",host.len,host.s,port.len,port.s,proto.len,proto.s);
+
+       //sip:host:port;transport=udp
+       alias_uri->s =(char *) pkg_malloc(port.len+host.len+proto.len+16);
</pre>
<p>i looked some examples in codes for pv->setf and i dont think that it should be freed.</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/pull/2124?email_source=notifications&email_token=ABO7UZKULXE3RSO7RIFVYZLQS65DRA5CNFSM4JKWMD52YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLAFPFA#discussion_r344477296">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMT5XPKPXD3W7YZYE3QS65DRANCNFSM4JKWMD5Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKBAHADWOYR3FHVGY3QS65DRA5CNFSM4JKWMD52YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLAFPFA.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/pull/2124?email_source=notifications\u0026email_token=ABO7UZKULXE3RSO7RIFVYZLQS65DRA5CNFSM4JKWMD52YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLAFPFA#discussion_r344477296",
"url": "https://github.com/kamailio/kamailio/pull/2124?email_source=notifications\u0026email_token=ABO7UZKULXE3RSO7RIFVYZLQS65DRA5CNFSM4JKWMD52YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLAFPFA#discussion_r344477296",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>