diff options
author | unknown <hf@deer.(none)> | 2004-02-20 12:18:06 +0400 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2004-02-20 12:18:06 +0400 |
commit | 3711e24a86d1ab8bc354ea1fe88687645504d3cc (patch) | |
tree | 5b50ada35f43308fd47649acec8b0cdb83a35c14 /libmysql/client_settings.h | |
parent | 3804200122762f88d9af28851610dc0c6dcbe0e8 (diff) | |
download | mariadb-git-3711e24a86d1ab8bc354ea1fe88687645504d3cc.tar.gz |
Fix for #1429 (Segfault in mysql_stmt_close)
Problem was that we checked for existing connection in stmt_close
and did not free(stmt) if it's closed (that didn't work well with
embedded)
I just added new flag to the stmt_close and now we check it instead
of connection
libmysql/client_settings.h:
declaration changed
libmysql/libmysql.c:
stmt_close and it's calls modified
sql-common/client.c:
stmt_close call modified
Diffstat (limited to 'libmysql/client_settings.h')
-rw-r--r-- | libmysql/client_settings.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysql/client_settings.h b/libmysql/client_settings.h index 4558f0f2abe..5ce0e021782 100644 --- a/libmysql/client_settings.h +++ b/libmysql/client_settings.h @@ -22,7 +22,7 @@ extern my_string mysql_unix_port; CLIENT_PROTOCOL_41 | CLIENT_SECURE_CONNECTION) sig_handler pipe_sig_handler(int sig __attribute__((unused))); -my_bool stmt_close(MYSQL_STMT *stmt, my_bool skip_list); +my_bool stmt_close(MYSQL_STMT *stmt, my_bool skip_list, my_bool skip_free); void read_user_name(char *name); my_bool send_file_to_server(MYSQL *mysql, const char *filename); |