Menu

#507 SqlStatement::prepare(char*) (SqlStatement.cxx:59) leak

open
nobody
SQL API (45)
9
2009-06-18
2009-06-18
Ankit Patel
No

Version: Community v2.5-Beta
Plateform: `uname -a` >> "Linux localhost 2.6.16.13-1 #3 Mon Nov 5 22:50:12 IST 2007 i686 i686 i386 GNU/Linux"

i have run test program "*/csql2.5-src/test/sqlapi/Select/test001" under "Valgrind" and found Memory leak. same leak also found in ODBC API.
Memory Leak trace is as followed,

==12651== 312 (120 direct, 192 indirect) bytes in 3 blocks are definitely lost in loss record 3 of 5
==12651== at 0x4005400: malloc (vg_replace_malloc.c:149)
==12651== by 0x40153A1: yy_flex_alloc(unsigned) (dmllex.cxx:1735)
==12651== by 0x401543D: yy_scan_buffer(char*, unsigned) (dmllex.cxx:1531)
==12651== by 0x4015562: yy_scan_bytes(char const*, int) (dmllex.cxx:1594)
==12651== by 0x40155C7: yy_scan_string(char const*) (dmllex.cxx:1564)
==12651== by 0x402236A: SqlStatement::prepare(char*) (SqlStatement.cxx:59)
==12651== by 0x8048B02: main (in */csql2.5-src/test/sqlapi/Select/test001)
==12651==

Discussion

  • Ankit Patel

    Ankit Patel - 2009-06-18
    • priority: 5 --> 9
     
  • Bijaya kumar Sahu

    This memory leak is no more with latest code base. Suggest you to upgrade build.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.