The leak happens also when updating
I tracked this down to the SQLDescribeColW call in Unicode_Win32.cpp. With PostgreSQL 9.01.01.00 ODBC driver; process memory usage increases by 4k exactly on every sixth call to this ODBC API and is never released.
If anyone can shed some light on this, speak up. I was not able to find a leak in Poco::Data::ODBC.
Discussion continued in the forum.
Tested SQL Server and Oracle drivers on Windows, no leaks.
To the best I was able to determine, this was PostgreSQL driver leak. Closing.
As you mentioned above, the issue is in psqlodbc driver leak.
Following is the link for the issue:
The fix is present in latest releases.
I have used psqlodbc-09.03.0400.tar.gz. Memory leaks are no longer detected.