diff options
| author | Sergei Golubchik <sergii@pisem.net> | 2014-03-16 13:59:44 +0100 |
|---|---|---|
| committer | Sergei Golubchik <sergii@pisem.net> | 2014-03-16 13:59:44 +0100 |
| commit | e772cbd7b774add42821c33b13ea052f8c9e2e6e (patch) | |
| tree | 0411c732161ad4fc4f49a02ee78abaa6632c6d4d /sql/sql_parse.cc | |
| parent | 8428c116c7cc1fb6a04345637a10084810874dd8 (diff) | |
| parent | d7304375e5e0ce30979c2b92e70eb0effaa30a25 (diff) | |
| download | mariadb-git-e772cbd7b774add42821c33b13ea052f8c9e2e6e.tar.gz | |
5.1 merge
Diffstat (limited to 'sql/sql_parse.cc')
| -rw-r--r-- | sql/sql_parse.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 0c47b7a8bb3..42383a0da58 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1,6 +1,6 @@ /* - Copyright (c) 2000, 2011, Oracle and/or its affiliates. - Copyright (c) 2008-2011 Monty Program Ab + Copyright (c) 2000, 2013, Oracle and/or its affiliates. + Copyright (c) 2008, 2014, Monty Program Ab. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1193,7 +1193,9 @@ bool dispatch_command(enum enum_server_command command, THD *thd, if (save_user_connect) decrease_user_connections(save_user_connect); #endif /* NO_EMBEDDED_ACCESS_CHECKS */ + pthread_mutex_lock(&thd->LOCK_thd_data); x_free(save_db); + pthread_mutex_unlock(&thd->LOCK_thd_data); x_free(save_security_ctx.user); } break; |
