diff options
author | hf@deer.(none) <> | 2003-09-10 12:58:26 +0500 |
---|---|---|
committer | hf@deer.(none) <> | 2003-09-10 12:58:26 +0500 |
commit | fd77d78804de542e3331976d60341aa3cbb750ea (patch) | |
tree | 3dbdbfe4ee14d4f5c7b4a008edaac5177572b89e /libmysqld/libmysqld.c | |
parent | d9ef1585d1db58a98dd33ad37ac60befb47b99d1 (diff) | |
download | mariadb-git-fd77d78804de542e3331976d60341aa3cbb750ea.tar.gz |
SCRUM: embedde library
Minor fixes
Diffstat (limited to 'libmysqld/libmysqld.c')
-rw-r--r-- | libmysqld/libmysqld.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libmysqld/libmysqld.c b/libmysqld/libmysqld.c index be6589333b7..7ac723f3050 100644 --- a/libmysqld/libmysqld.c +++ b/libmysqld/libmysqld.c @@ -311,14 +311,14 @@ error: void STDCALL mysql_close(MYSQL *mysql) { DBUG_ENTER("mysql_close"); - if (mysql->methods != &embedded_methods) - { - cli_mysql_close(mysql); - DBUG_VOID_RETURN; - } - if (mysql) /* Some simple safety */ { + if (mysql->methods != &embedded_methods) + { + cli_mysql_close(mysql); + DBUG_VOID_RETURN; + } + my_free(mysql->options.user,MYF(MY_ALLOW_ZERO_PTR)); my_free(mysql->options.host,MYF(MY_ALLOW_ZERO_PTR)); my_free(mysql->options.password,MYF(MY_ALLOW_ZERO_PTR)); |