[sr-dev] [kamailio/kamailio] ndb_redis: Fix leaks from PV parsing (#2536)

Daniel-Constantin Mierla notifications at github.com
Thu Oct 29 07:47:17 CET 2020


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.

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.

A similar case was also reported with sqlops module in #2032, in case you want to read about.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2536#issuecomment-718398603
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201028/99d5effb/attachment.htm>


More information about the sr-dev mailing list