i have run ( sql / Join / join3.sql ) with valgrind tool as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
createt1t2t3t4t5.sql
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
join3.sql
and found memory leakage as follows.
Error Summary:
==15801== 7,072 bytes in 26 blocks are indirectly lost in loss record 21 of 21
==15801== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)
==15801== by 0x403D516: JoinTableImpl::bindFld(char const*, void*) (JoinTableImpl.cxx:77)
==15801== by 0x403D5ED: JoinTableImpl::bindFld(char const*, void*) (JoinTableImpl.cxx:85)
==15801== by 0x405D9C9: SelStatement::resolveStar() (SelStatement.cxx:515)
==15801== by 0x405E10A: SelStatement::resolve() (SelStatement.cxx:320)
==15801== by 0x4065C9B: SqlStatement::prepare(char*) (SqlStatement.cxx:67)
==15801== by 0x8049574: getInput(bool) (isql.cxx:304)
==15801== by 0x8049B11: main (isql.cxx:109)
refer test / sql / Join / test003.ksh