i run agg1.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 agg1.sql
and found Memory leak
Error Summary :
==20406== Invalid read of size 4
==20406== at 0x4026D76: AllDataType::compareIntVal(void*, void*, ComparisionOp) (DataType.cxx:828)
==20406== by 0x4028BE7: AllDataType::compareVal(void*, void*, ComparisionOp, DataType, long) (DataType.cxx:769)
==20406== by 0x403B49D: AggTableImpl::execute() (AggTableImpl.cxx:135)
==20406== by 0x405CB35: SelStatement::execute(int&) (SelStatement.cxx:89)
==20406== by 0x4065888: SqlStatement::execute(int&) (SqlStatement.cxx:105)
==20406== by 0x80495C5: getInput(bool) (isql.cxx:311)
==20406== by 0x8049B11: main (isql.cxx:109)
refer csql / test /tools/ csql / test029.ksh