ParsedData::insertPredicate() (ParsedData.cxx:107) leaks
Main Memory Database Cache
Brought to you by:
prabatuty
I have run the script (sqlapi / Parameter / test002) with valgrind tool
as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./test002
and found memory leakage :
Error Summary :
==14967== 188 bytes in 1 blocks are still reachable in loss record 17 of 22
==14967== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)
==14967== by 0x401708E: ParsedData::insertPredicate(char*, ComparisionOp, void**) (ParsedData.cxx:107)
==14967== by 0x4013738: yyparse() (dmlyacc.yxx:279)
==14967== by 0x4021BF7: SqlStatement::prepare(char*) (SqlStatement.cxx:57)
==14967== by 0x8048F3C: main (in csql/test/sqlapi/Parameter/test002)
need to closed