i have tested the script ( odbc/Select/test006) with valgrind
tool as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./test006
and found memory leakage as follows.
Error Summary :
==15456== 348 bytes in 1 blocks are definitely lost in loss record 8 of 11
==15456== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)
==15456== by 0x40A25A5: SqlFactory::createStatement(SqlApiImplType) (SqlFactory.cxx:70)
==15456== by 0x401AB60: CSqlOdbcStmt::SQLPrepare(unsigned char*, long) (odbcStmt.cxx:496)
==15456== by 0x401ADDA: SQLPrepare (odbcStmt.cxx:469)
==15456== by 0x80489A0: FetchTest(void*, void*, void*) (in /home/lakshya/JANUARY/jan29/csql/test/odbc/Select/test006)
==15456== by 0x8048E47: main (in csql/test/odbc/Select/test006)
Refer test / odbc / Select / test006