#At file:///media/sdb2/hezx/work/mysql/bzrwork/b45819/azalea-bugfixing/ based on revid:zhenxing.he@stripped
2805 He Zhenxing 2009-07-07
Bug#45973 rpl_semi_sync fails in valgrind platform with warnings
The warning about delete/new operater reported by PB with valgrind
was caused by a mismatch of calling delete on objects allocated by
new [].
M plugin/semisync/semisync_master.cc
=== modified file 'plugin/semisync/semisync_master.cc'
--- a/plugin/semisync/semisync_master.cc 2009-07-07 09:17:20 +0000
+++ b/plugin/semisync/semisync_master.cc 2009-07-07 09:44:26 +0000
@@ -90,7 +90,7 @@ ActiveTranx::~ActiveTranx()
{
for (int idx = 0; idx < num_transactions_; ++idx)
{
- delete node_array_[idx].log_name_;
+ delete [] node_array_[idx].log_name_;
node_array_[idx].log_name_ = NULL;
}
Attachment: [text/bzr-bundle] bzr/zhenxing.he@sun.com-20090707094426-db9z0i3b02hi3w2w.bundle
| Thread |
|---|
| • bzr commit into mysql-5.4 branch (zhenxing.he:2805) Bug#45973 | He Zhenxing | 7 Jul |