Hi *, I think I have an example of memory leaking when using external engine plugin (3.0.7, 4.0.0).
Here's as simple implementation as I can make it (sorry for probably non-idiomatic C++ code): https://gist.github.com/cincuranet/aa207081dc0d44e5d06c1a4890019307 . Then I create a dummy function in a database `CREATE FUNCTION TEST RETURNS INTEGER ENGINE MEMORYDEMO`. Finally I run `select test() from rdb$database where 0=1` in a loop using isql (open-execute-close) using simple script (in this case PowerShell flavor) below. Given the `0=1` the function is actually never called (and for good measure I have `exit(EXIT_FAILURE)` there), but at least the plugin is used. while ($true) { 'select test() from rdb$database where 0=1;' | & $isql -u sysdba -p masterkey 'localhost:memory.fdb'; } This results in this memory usage (and as far as I can tell from couple of long runs, it keeps growing): https://snipboard.io/g5Lzya.jpg Am I doing something wrong? Or is this a bug? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel