i have tested the script ( odbc/Parameters/test002) with valgrind
tool as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./test002
and found memory leakage as follows.
Error Summary :
==15327== Address 0x40E1F70 is 0 bytes inside a block of size 51 alloc'd
==15327== at 0x400595C: operator new[](unsigned)
(vg_replace_malloc.c:195)
==15327== by 0x4012E05: getInputBuffer(void**, short, unsigned long)
(odbcCommon.cxx:307)
==15327== by 0x401A215: CSqlOdbcStmt::SQLBindCol(unsigned short, short,
void*, long, long*) (odbcStmt.cxx:297)
==15327== by 0x401A2BE: SQLBindCol (odbcStmt.cxx:196)
==15327== by 0x8048EC9: FetchTest(void*, void*, void*) (in
/home/lakshya/JANUARY/jan29/csql/test/odbc/Parameters/test002)
==15327== by 0x8049A70: main (in csql/test/odbc/Parameters/test002)