Hello,
It seems this bug also appears with Firebird (I use TRUNK_187 with this previous bug fixed).
The leak happens upon calling TZQuery.ExecSQL. As it seems to be the error message data not being freed, you can only witness it with invalid SQL. I'm afraid I'm not familiar enough with Zeos codebase to fix it myself.
Memory leak with ExecSQL and Firebird
Moderators: EgonHugeist, mdaems