i have run csql4.sql under the directory ( tools / csql ) with valgrind tool as follows
[lakshya@localhost catalog]$ valgrind --tool=memcheck --leak-check=yes
--show-reachable=yes csql -u root -p manager -s csql4.sql
and found memory leaks.
Error Summary :
==19798== 4 bytes in 1 blocks are indirectly lost in loss record 5 of 21
==19798== at 0x4005525: malloc (vg_replace_malloc.c:149)
==19798== by 0x40287DF: AllDataType::alloc(DataType, int) (DataType.cxx:1235)
==19798== by 0x405FE6D: InsStatement::resolve() (InsStatement.cxx:325)
==19798== by 0x4065C9B: SqlStatement::prepare(char*) (SqlStatement.cxx:67)
==19798== by 0x8049574: getInput(bool) (isql.cxx:304)
==19798== by 0x8049B11: main (isql.cxx:109)