i have run ( sql / Join / join_between.sql ) with valgrind tool as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
join32.sql
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
join_between.sql
and found memory leakage as follows.
Error Summary :
==16068== 752 bytes in 4 blocks are indirectly lost in loss record 15 of 19
==16068== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)
==16068== by 0x40303BC: TableImpl::setPredicate(Predicate*) (TableImpl.cxx:1044)
==16068== by 0x4030B6A: TableImpl::pushPredicate(Predicate*) (TableImpl.cxx:1034)
==16068== by 0x403C40D: JoinTableImpl::pushPredicate(Predicate*) (JoinTableImpl.cxx:441)
==16068== by 0x403CCAD: JoinTableImpl::optimize() (JoinTableImpl.cxx:195)
==16068== by 0x403CDB7: JoinTableImpl::execute() (JoinTableImpl.cxx:261)
==16068== by 0x405CB35: SelStatement::execute(int&) (SelStatement.cxx:89)
==16068== by 0x4065888: SqlStatement::execute(int&) (SqlStatement.cxx:105)
==16068== by 0x80495C5: getInput(bool) (isql.cxx:311)
==16068== by 0x8049B11: main (isql.cxx:109)
refer test / sql / Join / test014.ksh