i have run ( sql / Aggregate / aggregate5.sql ) with valgrind tool as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
createt1t2.sql
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
aggregate5.sql
and found memory leakage as follows.
Error Summary :
==16251== Address 0x40C00DC is 0 bytes after a block of size 12 alloc'd
==16251== at 0x4005525: malloc (vg_replace_malloc.c:149)
==16251== by 0x403B07F: AggTableImpl::insertOrGet() (AggTableImpl.cxx:207)
==16251== by 0x403B36E: AggTableImpl::execute() (AggTableImpl.cxx:114)
==16251== by 0x405CB35: SelStatement::execute(int&) (SelStatement.cxx:89)
==16251== by 0x4065888: SqlStatement::execute(int&) (SqlStatement.cxx:105)
==16251== by 0x80495C5: getInput(bool) (isql.cxx:311)
==16251== by 0x8049B11: main (isql.cxx:109)
refer test / sql / Aggregate / test005.ksh