i have run ( sql / Aggregate / aggregate5.sql ) with valgrind tool as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
createt1t2.sql
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
aggregate5.sql
and found memory leakage as follows.
Error Summary :
==16251== Use of uninitialised value of size 4
==16251== at 0xA817DB: _itoa_word (in /lib/libc-2.7.so)
==16251== by 0xA8573F: vfprintf (in /lib/libc-2.7.so)
==16251== by 0xA8B9B2: printf (in /lib/libc-2.7.so)
==16251== by 0x40269E2: AllDataType::printVal(void*, DataType, int) (DataType.cxx:1843)
==16251== by 0x405CEBF: SelStatement::fetchAndPrint(bool) (SelStatement.cxx:795)
==16251== by 0x406597C: SqlStatement::fetchAndPrint(bool) (SqlStatement.cxx:151)
==16251== by 0x804975C: getInput(bool) (isql.cxx:342)
==16251== by 0x8049B11: main (isql.cxx:109)
refer test/sql / Aggregate / test005.ksh