Bug #15385 Memory leak in ha_federated.cc
Submitted: 1 Dec 2005 15:22 Modified: 27 Mar 2006 14:49
Reporter: Ingo Strüwing Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.1.4 OS:Linux (Linux)
Assigned to: CPU Architecture:Any

[1 Dec 2005 15:22] Ingo Strüwing
Description:
In ha_federated.cc, line 436 is something allocated that is never released. At shutdown a note is logged in the error log.

How to repeat:
Make a -debug-max build of the current 5.1-new tree.
cd mysql-test
./mysql-test-run alias   # almost any other test will do too

The result is:
...
All 1 tests were successful.
WARNING: Got errors/warnings while running tests. Please examine
/home/mydev/mysql-5.1-wl1563/mysql-test/var/log/warnings for details.

In var/log/warnings you find:
Warning: Not freed memory segments: 1
Warning: Memory that was not free'ed (256 bytes):

In var/log/master.err you find:
...
Warning: Not freed memory segments: 1
Warning: Memory that was not free'ed (256 bytes):
           256 bytes at 0x009252408, allocated at line  436 in 'ha_federated.cc'
...
[5 Dec 2005 11:49] Aleksey Kishkin
tested against latest 5.1 from bk tree
[23 Feb 2006 0:09] Brian Aker
Please reverify.
[27 Mar 2006 14:49] MySQL Verification Team
I was unable to repeat the issue reported with current BK source
on Suse Linux 10.