diff options
author | hf@deer.(none) <> | 2004-02-20 12:18:06 +0400 |
---|---|---|
committer | hf@deer.(none) <> | 2004-02-20 12:18:06 +0400 |
commit | e01ea15029160e6f9e076b5f4a3f0c20d770bf66 (patch) | |
tree | 5b50ada35f43308fd47649acec8b0cdb83a35c14 /sql-common | |
parent | 9edef96561704cc5c0e56ba58d02f6a03eac08e2 (diff) | |
download | mariadb-git-e01ea15029160e6f9e076b5f4a3f0c20d770bf66.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
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 36b2c6122dd..a4ec7db6515 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -2197,7 +2197,7 @@ void STDCALL mysql_close(MYSQL *mysql) for (element= mysql->stmts; element; element= next_element) { next_element= element->next; - stmt_close((MYSQL_STMT *)element->data, 0); + stmt_close((MYSQL_STMT *)element->data, 0, 1); } mysql->stmts= 0; } |