#At file:///media/sda3/work/mysql/bzrwork/b38290/5.1-rpl/
2656 He Zhenxing 2008-08-11
BUG#38290 valgrind warnings in binlog_base64_flag
The problem is because we forget to free the event allocated
in mysql_client_binlog_statement when an error occured while
applying the event.
modified:
sql/sql_binlog.cc
=== modified file 'sql/sql_binlog.cc'
--- a/sql/sql_binlog.cc 2008-02-19 12:45:21 +0000
+++ b/sql/sql_binlog.cc 2008-08-11 09:25:21 +0000
@@ -208,6 +208,7 @@ void mysql_client_binlog_statement(THD*
#if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION)
if (apply_event_and_update_pos(ev, thd, thd->rli_fake, FALSE))
{
+ delete ev;
/*
TODO: Maybe a better error message since the BINLOG statement
now contains several events.
| Thread |
|---|
| • bzr commit into mysql-5.1 branch (hezx:2656) Bug#38290 | He Zhenxing | 11 Aug |