summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay.choubey@oracle.com>2013-03-18 12:46:06 +0530
committerNirbhay Choubey <nirbhay.choubey@oracle.com>2013-03-18 12:46:06 +0530
commit6d6af5477eddcd994d6b9bd295563a02359b735f (patch)
treec01799f77c48abe53533d4ae3c2e889fe9ee65db /sql-common
parent56630dfd45b5cc70e1070c8e0f26f1f5b1b4f799 (diff)
parenta6adbd05333f0cfc7365974caa452e03cbb6fa7d (diff)
downloadmariadb-git-6d6af5477eddcd994d6b9bd295563a02359b735f.tar.gz
Merge of patch for bug#14685362 from mysql-5.1.
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index ef1e3c1b7d4..7e369e74eb8 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -2215,6 +2215,8 @@ mysql_autodetect_character_set(MYSQL *mysql)
}
#endif
+ if (mysql->options.charset_name)
+ my_free(mysql->options.charset_name);
if (!(mysql->options.charset_name= my_strdup(csname, MYF(MY_WME))))
return 1;
return 0;