i have run ( sql / Join / join_in.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_in.sql
and found memory leakage as follows.
==16034== 1,092 (1,056 direct, 36 indirect) bytes in 12 blocks are definitely lost in loss record 16 of 20
==16034== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)
==16034== by 0x405B396: ParsedData::insertInValue(char*) (ParsedData.cxx:39)
==16034== by 0x4056FA1: yyparse() (dmlyacc.yxx:93)
==16034== by 0x4065BF7: SqlStatement::prepare(char*) (SqlStatement.cxx:57)
==16034== by 0x8049574: getInput(bool) (isql.cxx:304)
==16034== by 0x8049B11: main (isql.cxx:109)
refer test / sql / Join / test013.ksh