Hi! Sometimes a object managed by memory-pool may embed non-pooled memory or other resources.
If the main object is not explicitly destroyed, i.e., destroyed by pool, the embedded objects leak. I've added a way in the work/re2 branch to attach these resources to memory pool lifecycle and detach if the main object is explicitly destroyed. https://github.com/FirebirdSQL/firebird/commit/ff06569f127caf3128a5b3290f67eb468f86fe8d Adriano Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel