Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » [BUG] Memory leak in MySql package
[BUG] Memory leak in MySql package [message #39611] Fri, 05 April 2013 12:43 Go to previous message
Klugier is currently offline  Klugier
Messages: 1100
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

I diagnosed serious memory leak in MySql package. According to the following reference http://dev.mysql.com/doc/refman/5.1/en/mysql-library-end.htm l we need to call extra function (mysql_library_end(void)) to make total order.

I enclose patch code (MySql/MySql.cpp - line 132):

void MySqlSession::Close() 
{
	SessionClose();
	if(mysql) {
		mysql_close(mysql);
		mysql_library_end();
		mysql = NULL;
		level = 0;
	}
}


Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Fri, 05 April 2013 12:44]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reason why session does not connect
Next Topic: Sql(SqlSession& session) problem
Goto Forum:
  


Current Time: Tue Jul 15 08:09:48 CEST 2025

Total time taken to generate the page: 0.02610 seconds