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.
Error Summary :
==16034== 36 bytes in 12 blocks are indirectly lost in loss record 1 of 20
==16034== at 0x4005525: malloc (vg_replace_malloc.c:149)
==16034== by 0xAB5E9F: strdup (in /lib/libc-2.7.so)
==16034== by 0x405B3D3: ParsedData::insertInValue(char*) (ParsedData.cxx:43)
==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