Commit 316e463c authored by He Zhenxing's avatar He Zhenxing
Browse files

BUG#38290 valgrind warnings in binlog_base64_flag

The problem was because the event allocated in mysql_client_binlog_statement
was not freed when an error occured while applying the event.
parent 35e47b31
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -208,6 +208,7 @@ void mysql_client_binlog_statement(THD* 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.