summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2016-08-11 17:50:21 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2016-08-11 17:50:21 +0200
commit66ac894c40ad089175aaf6d4922f7250c23b9b3d (patch)
tree5099cd2d1737b3a0d16d6c472366f00d4fb95182 /sql
parentb5fb2a685b6ec67d37033b020a8145d1aac1fc93 (diff)
downloadmariadb-git-66ac894c40ad089175aaf6d4922f7250c23b9b3d.tar.gz
MDEV-10455: libmariadbclient18 + MySQL-python leaks memory on failed connections
Support of CLIENT_REMEMBER_OPTIONS and freeing options added.
Diffstat (limited to 'sql')
-rw-r--r--sql/slave.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 5d44fb2b6a8..a309fc5cdc5 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -6061,7 +6061,7 @@ static int connect_to_master(THD* thd, MYSQL* mysql, Master_info* mi,
#ifndef DBUG_OFF
mi->events_till_disconnect = disconnect_slave_event_count;
#endif
- ulong client_flag= 0;
+ ulong client_flag= CLIENT_REMEMBER_OPTIONS;
if (opt_slave_compressed_protocol)
client_flag=CLIENT_COMPRESS; /* We will use compression */