<p>I pushed a different patch, the way you kept reference to _ht_local in ht_cell_get() was lost, because the variable was on stack. Then it was no need for two layers of wrapper functions, both being small. The api function member is named <code>get_clone</code> to be clear is not the htable cell pointer. The result has to be pkg_free() after use. Commit is referenced above.</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/1866#issuecomment-470843927">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Za_N9uMYn5-vz9KNxk3uEm1Qx3Uwks5vUhwogaJpZM4bPk66">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZXGUiaJxUbSZnNEW7H_M6LPGDmFnks5vUhwogaJpZM4bPk66.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1866: I pushed a different patch, the way you kept reference to _ht_local in ht_cell_get() was lost, because the variable was on stack. Then it was no need for two layers of wrapper functions, both being small. The api function member is named `get_clone` to be clear is not the htable cell pointer. The result has to be pkg_free() after use. Commit is referenced above."}],"action":{"name":"View Pull Request","url":"https://github.com/kamailio/kamailio/pull/1866#issuecomment-470843927"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/1866#issuecomment-470843927",
"url": "https://github.com/kamailio/kamailio/pull/1866#issuecomment-470843927",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>