Skip navigation links

MySQL Forums :: C/C++ :: Memory Leak Reported by BoundsChecker


Advanced Search

Memory Leak Reported by BoundsChecker
Posted by: Martin Beaudet ()
Date: October 30, 2009 08:16AM

Hi,

My project is running on Windows and Visual Studio 2005 using MySQL C API library.

I ran BoundsChecker on my project opening a connections to MySQL and closing it at the end of the program.

I got the following leak :
Type	Quantity	Total (bytes)	Allocation Location	Sequence
Leak exiting program	54	8 464	libmySQL.dll ! 0x0008C464	
Leak exiting program	17	61 360	libmySQL.dll ! 0x0008BB92	
Leak exiting program	2	693	libmySQL.dll ! 0x0008BB94

I got the same leak event when I'm creating the smallest program
#include <mysql/mysql.h>
int main()
{
   MYSQL* pMySQL = mysql_init(NULL);
   mysql_close(pMySQL);
   mysql_library_end();
   return 0;
}

Is somebody else got those leaks ?

We are really tight in the schedule of our project and we discover this problem after all the implementation. We are really disapointed.

Best regards



Edited 2 time(s). Last edit at 10/30/2009 08:51AM by Martin Beaudet.

Options: ReplyQuote


Subject Written By Posted
Memory Leak Reported by BoundsChecker Martin Beaudet 10/30/2009 08:16AM


Sorry, only registered users may post in this forum.