Bug #11343 Memory leaks in ha_ndbcluster.cc?
Submitted: 15 Jun 2005 8:44 Modified: 6 Feb 2006 14:49
Reporter: Mats Kindahl Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:5.1-wl2325 bk tree OS:Linux (linux)
Assigned to: Assigned Account CPU Architecture:Any

[15 Jun 2005 8:44] Mats Kindahl
Description:
I have located several memory leaks by running rpl_row tests with --valgrind-all. The following is a simple analysis of the source of the leak.

Line 197 in 'my_alloc.c' - results from calling alloc_root() but not calling the corresponding free_root()  at shutdown.

Line 133 in 'table.cc' - a one byte [sic] leak resulting from calling openfrm() but not calling closefrm() before shutdown.

Line 59 in 'sql_base.cc' - a leak resulting from calling table_cache_init() but not having a matching table_cache_free() before shutdown.

Line 6161 in 'ha_ndbcluster.cc' - an allocation of memory for a table structure with no subsequence free (before shutdown).

Line 120 in 'net_serv.cc' - a leak resulting from calling my_net_init() but not calling the corresponding net_end() before shutdown.

How to repeat:
./mysql-test-run --do-test=rpl_row --valgrind-all
[25 Jun 2005 22:35] Mats Kindahl
Fixed and pushed two memory leaks.
[6 Feb 2006 14:49] Tomas Ulin
duplicate with 16874