Dimitry Sibiryakov
unread,Mar 2, 2026, 3:35:32 PM (13 days ago) Mar 2Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to firebir...@googlegroups.com
Hello All,
In jrd_prc::scan() I see that parameter for the procedure are created not in
the same memory pool as jrd_prc instance itself but in the global metadata cache
pool, while the tree of nodes for default value - in the third, DBB's allocated
global pool, separate for each parameter.
And it looks like that on error only the pool for the last parameter is
destructed, probably leaking the rest.
Is there a reason why it is done this way instead of using the same pool for
everything, so on error everything is destructed at once with the pool itself?
AFAIR it was the idea behind memory pools.
--
WBR, SD.