File Reference : test030.ksh
I have Run the following under test / cache / CacheTable directory
[lakshya@localhost CacheTable]$export DSN=myodbc3
[lakshya@localhost CacheTable]$REL_PATH=.isql $DSN < ${REL_PATH}/createt5.sql
[lakshya@localhost CacheTable]$rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db
[lakshya@localhost CacheTable]$touch /tmp/csql/csqltable.conf /tmp/csql/csql.db
Created a file say x.ksh. The contents of this file is as follows
for((a=5;a<=6;a++))
do
echo "insert into t$a values(16,20);"
echo "insert into t$a values(15,21);"
done>>insertt5t6.sql
After creating this file, Execute this x.ksh file as
[lakshya@localhost CacheTable]$./x.ksh
[lakshya@localhost CacheTable]$isql $DSN < insertt5t6.sql
Started the csqlserver in another SHELL
Executed the command (csql -g -s insertt5t6.sql ) with valgrind tool as
[lakshya@localhost CacheTable]$ valgrind --tool=memcheck --leak-check=full --show-reachable=yes csql -g -s insertt5t6.sql
And i found Memory Leaks
Error Summary :
==27949== 16 bytes in 1 blocks are indirectly lost in loss record 2 of 28
==27949== at 0x4005CCC: operator new(unsigned) (vg_replace_malloc.c:163)
==27949== by 0x40677AD: SqlFactory::createConnection(SqlApiImplType) (SqlFactory.cxx:48)
==27949== by 0x8049A21: main (isql.cxx:96)