mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Extending tests for detach (found a memory issue in it, this fixes that and now tests it).
client/mysqlslap.c: Fix memory allocation mysql-test/t/mysqlslap.test: Extend test for --detach
This commit is contained in:
@@ -1804,6 +1804,13 @@ limit_not_met:
|
||||
{
|
||||
mysql_close(mysql);
|
||||
|
||||
if (!(mysql= mysql_init(NULL)))
|
||||
{
|
||||
fprintf(stderr,"%s: mysql_init() failed ERROR : %s\n",
|
||||
my_progname, mysql_error(mysql));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (slap_connect(mysql))
|
||||
goto end;
|
||||
}
|
||||
|
Reference in New Issue
Block a user