IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
No replies
17917 Posts

Pinned topic Valgrind reports a lot of issues originating from

‏2013-01-10T10:47:02Z |
I'm developing software that uses DB2 database via ODBC (unixodbc). The issue is that running test suite with valgrind I get massive amount of errors. Let alone one connect and disconnect generates 4k error messages (code attached). My question is:

1. Am I doing something wrong?
2. Is there clean up function that frees allocated memory?
3. Valgrind also has message suppression feature, is there maintained suppression file for library?

... ==19632== LEAK SUMMARY: ==19632==    definitely lost: 129,008 bytes in 13 blocks ==19632==    indirectly lost: 808 bytes in 5 blocks ==19632==      possibly lost: 440,032 bytes in 6 blocks ==19632==    still reachable: 20,899 bytes in 142 blocks ==19632==         suppressed: 0 bytes in 0 blocks ==19632== ==19632== For counts of detected and suppressed errors, rerun with: -v ==19632== ERROR SUMMARY: 4026 errors from 265 contexts (suppressed: 2 from 2)

I'm using:
1) acquired from DSClients-linuxx64-odbc_cli- package for Linux 64bit.
2) version 2.3.1 acquired from