mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user