ParsedData::insertPredicate() (ParsedData.cxx:120) 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== 1,692 bytes in 9 blocks are indirectly lost in loss record 21 of 22
==14967== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)
==14967== by 0x4016FD6: ParsedData::insertPredicate(Predicate*, LogicalOp, Predicate*) (ParsedData.cxx:120)
==14967== by 0x4013526: yyparse() (dmlyacc.yxx:235)
==14967== by 0x4021BF7: SqlStatement::prepare(char*) (SqlStatement.cxx:57)
==14967== by 0x8048F3C: main ( in csql/test/sqlapi/Parameter/test002)
needs to close