mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 09:45:31 +02:00
bug #25492 (Invalid deallocation in mysql_stmt_fetch)
Operating with the prepared statements we don't alloc MYSQL_DATA structure, but use MYSQL_STMT's field instead (to increase performance by reducing malloc calls). So we shouldn't free this structure as we did before. libmysqld/lib_sql.cc: we only should free data->alloc here, as the 'data' is a member of STMT structure
This commit is contained in:
parent
6d04643ab3
commit
925d4fb921
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ int emb_unbuffered_fetch(MYSQL *mysql, char **row)
|
|||
*row= NULL;
|
||||
if (data)
|
||||
{
|
||||
free_rows(data);
|
||||
free_root(&data->alloc,MYF(0));
|
||||
((THD*)mysql->thd)->data= NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue