Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-09 Thread Shakthi Kannan
Hi Markus, --- On Thu, Aug 4, 2011 at 5:44 PM, Markus Hoenicka markus.hoeni...@mhoenicka.de wrote: | I had almost forgotten that bug. That's indeed the most likely reason that | your test app leaks memory. Unfortunately you're not using an old version as | 0.8.3 is the latest official release.

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-09 Thread Shakthi Kannan
Hi Markus: --- On Tue, Aug 9, 2011 at 4:51 PM, markus.hoeni...@mhoenicka.de wrote: | I've reproduced the leak that you detected in the current cvs | sources. According to my analysis the drivers pass error messages | through dbd_geterror() as allocated | strings. _dbd_internal_error_handler()

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-04 Thread Shakthi Kannan
Hi Markus, I came across this memory leak post: http://comments.gmane.org/gmane.comp.db.libdbi.devel/309 Is this fixed in the sources and am I using old version of the software? libdbi-devel-0.8.3-4.fc14.i686 libdbi-0.8.3-4.fc14.i686 libdbi-drivers-0.8.3-6.fc14.i686

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-03 Thread Markus Hoenicka
Shakthi Kannan shakthim...@gmail.com was heard to say: int main() { dbi_conn conn; while (1) { dbi_initialize(NULL); [...] dbi_shutdown(); } return 0; } Hi, I'll test your code on my dev box as soon as time permits. libdbi is not supposed to lose memory under any