diff options
author | Praveenkumar Hulakund <praveenkumar.hulakund@oracle.com> | 2013-08-23 18:56:31 +0530 |
---|---|---|
committer | Praveenkumar Hulakund <praveenkumar.hulakund@oracle.com> | 2013-08-23 18:56:31 +0530 |
commit | 45daf55a551226fa22b5057ad8e894fe8f0b53d9 (patch) | |
tree | a8a947db4974ff837b841f833f55627f8bf4706d /sql/sql_show.cc | |
parent | 561f68eccde5468613afcd4d5a7edd1c79b46532 (diff) | |
download | mariadb-git-45daf55a551226fa22b5057ad8e894fe8f0b53d9.tar.gz |
Bug#11765252 - READ OF FREED MEMORY WHEN "USE DB" AND
"SHOW PROCESSLIST"
Follow up path, addressing pb2 test failure.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 94fcbee8c9e..b8e8649e1eb 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -1844,8 +1844,6 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose) tmp_sctx->host_or_ip : tmp_sctx->get_host()->length() ? tmp_sctx->get_host()->ptr() : ""); - if ((thd_info->db=tmp->db)) // Safe test - thd_info->db=thd->strdup(thd_info->db); thd_info->command=(int) tmp->command; mysql_mutex_lock(&tmp->LOCK_thd_data); if ((thd_info->db= tmp->db)) // Safe test |