Bug #53490 ndb_mgmd mismatched array memory allocation
Submitted: 7 May 2010 13:41 Modified: 18 Aug 2010 18:01
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:7.0.15 OS:Any
Assigned to: Magnus Blåudd CPU Architecture:Any

[7 May 2010 13:41] Magnus Blåudd
Description:
Memory allocated with new [] in 'MgmApiSession::setConfig' is freed using delete when the delete [] operator should have been used.

Fortunately this code is located in code not executed in a normal production cluster.

How to repeat:
MCI

Suggested fix:
Use delete [] for freeing the allocated memory.
[7 May 2010 13:43] Magnus Blåudd
Found with cppcheck
[7 May 2010 13:50] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/107762
[18 Aug 2010 18:01] Jon Stephens
No user-facing changes, nothing to document. Closed without further action.