i run comp4.sql under the directory ( tools / csql / ) using -s option
with valgrind tool as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -u
root -p manager -s comp4.sql
and found Memory leak
Error Summary :
==20479== 4 bytes in 1 blocks are still reachable in loss record 2 of 16
==20479== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)
==20479== by 0x402A2B1: Index::getIndex(IndexType) (Index.cxx:32)
==20479== by 0x4030E26: TableImpl::insertIndexNode(Transaction*, void*, IndexInfo*, void*) (TableImpl.cxx:835)
==20479== by 0x4032308: TableImpl::insertTuple() (TableImpl.cxx:541)
==20479== by 0x40604D5: InsStatement::execute(int&) (InsStatement.cxx:75)
==20479== by 0x4065888: SqlStatement::execute(int&) (SqlStatement.cxx:105)
==20479== by 0x80495C5: getInput(bool) (isql.cxx:311)
==20479== by 0x8049B11: main (isql.cxx:109)
refer tools / csql / test033.ksh