You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Fix for bug CONC-131:
Free async context when closing options (mysql_options_close)
This commit is contained in:
@@ -191,9 +191,19 @@ static int async1(MYSQL *my)
|
||||
return OK;
|
||||
}
|
||||
|
||||
static int test_conc131(MYSQL *my)
|
||||
{
|
||||
/* this test needs to run under valgrind */
|
||||
MYSQL *mysql=mysql_init(NULL);
|
||||
mysql_options(mysql, MYSQL_OPT_NONBLOCK, 0);
|
||||
mysql_close(mysql);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
struct my_tests_st my_tests[] = {
|
||||
{"async1", async1, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
|
||||
{"test_conc131", test_conc131, TEST_CONNECTION_NONE, 0, NULL, NULL},
|
||||
{NULL, NULL, 0, 0, NULL, NULL}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user