Menu

#489 verifyMismatchingRecords( ) (cacheverify.cxx:345) leaks

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

File Reference : test009.ksh
I run the following under test / cache / CacheVerify directory for check memory leak

[lakshya@localhost CacheVerify]$ input=${PWD}/cache/CacheVerify/mysqlinput.sql
[lakshya@localhost CacheVerify]$ REL_PATH=.
[lakshya@localhost CacheVerify]$ cp $CSQL_CONFIG_FILE /tmp/csql.conf
[lakshya@localhost CacheVerify]$ export DSN=myodbc3
[lakshya@localhost CacheVerify]$ echo DSN=$DSN >>$CSQL_CONFIG_FILE
[lakshya@localhost CacheVerify]$ isql $DSN < ${REL_PATH}/mysqlinput.sql
[lakshya@localhost CacheVerify]$ $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/mysqlinput.sql >/dev/null 2>&1
[lakshya@localhost CacheVerify]$ echo "1:t1 NULL NULL NULL" > /tmp/csql/csqltable.conf
[lakshya@localhost CacheVerify]$ isql $DSN < ${REL_PATH}/mysqlupdate.sql >/dev/null 2>&1
[lakshya@localhost CacheVerify]$ $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlupdate.sql >/dev/null 2>&1
[lakshya@localhost CacheVerify]$ valgrind --tool=memcheck --leak-check=full --show-reachable=yes cacheverify -t t1 -f
And found memory leaks

Error Summary :
==11578== 141 (96 direct, 45 indirect) bytes in 8 blocks are definitely lost in loss record 26 of 51
==11578== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)
==11578== by 0x804A769: verifyMismatchingRecords(char const*, int) (cacheverify.cxx:345)
==11578== by 0x804BECA: main (cacheverify.cxx:664)

Discussion


Log in to post a comment.