#At file:///media/sdb2/hezx/work/mysql/bzrwork/b45973/azalea-bugfixing/ based on revid:alik@stripped
2827 He Zhenxing 2009-07-13
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 02:44:17 +0000
+++ b/plugin/semisync/semisync_master.cc 2009-07-13 12:32:55 +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-20090713123255-fj1a6vxvxmuxf3me.bundle
| Thread |
|---|
| • bzr commit into mysql-5.4 branch (zhenxing.he:2827) Bug#45973 | He Zhenxing | 13 Jul |