1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03: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.
This commit is contained in:
holyfoot/hf@mysql.com/hfmain.(none)
2007-01-29 11:48:31 +04:00
parent 9659c11b6e
commit e3f4f02b64

View File

@ -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;
}
}