Menu

#484 getFieldNameList() (TableImpl.cxx:855) leaks

V2.1 Beta
open
nobody
leak (188)
5
2009-02-06
2009-02-06
No

File Reference : test004.ksh
I Run the following under test / cache / Recovery ) directory

[lakshya@localhost Recovery]$
export DSN=myodbc3
[lakshya@localhost Recovery]$ rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db

[lakshya@localhost Recovery]$ touch /tmp/csql/csqltable.conf /tmp/csql/csql.db

I appended a line in /tmp / csql / csqltable.conf as 1:t1 NULL NULL NUL
Started the csqlserver in another terminal

[lakshya@localhost Recovery]$ csql -s $REL_PATH/insert.sql

[lakshya@localhost Recovery]$ rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db

[lakshya@localhost Recovery]$ touch /tmp/csql/csqltable.conf /tmp/csql/csql.db

Finally i have execute ( csqldump command ) with valgrind tool as
[lakshya@localhost Recovery]$ valgrind --tool=memcheck --leak-check=full --show-reachable=yes csqldump

And found Memory leaks

Error Summary :
==28375== 128 bytes in 2 blocks are indirectly lost in loss record 9 of 14

==28375== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)

==28375== by 0x4098B7D: TableImpl::getFieldNameList() (TableImpl.cxx:855)

==28375== by 0x80493C5: main (csqldump.cxx:112)

Discussion


Log in to post a comment.