<p></p>
<p>Then just reuse the redis result (reply) ids (e.g., static strings), likely you do not need to work with more than 2-3 results at the same time.</p>
<p>The design of PVs, which was done for the native scripting language, has impact here -- in the native scripting the PV names are resolved at startup, but with Kem, PVs can be created dynamically and can result in filling the memory. It is not a leak per se, because they are still referenced.</p>
<p>A similar case was also reported with sqlops module in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="480150196" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/2032" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/2032/hovercard" href="https://github.com/kamailio/kamailio/issues/2032">#2032</a>, in case you want to read about.</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/2536#issuecomment-718398603">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPI4UFGK5SFWYLDGK3SNEFXLANCNFSM4TDH3LZA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKSGDGZ6HYMZQMCCE3SNEFXLA5CNFSM4TDH3LZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFLI6JCY.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/2536#issuecomment-718398603",
"url": "https://github.com/kamailio/kamailio/pull/2536#issuecomment-718398603",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>