1
0
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:
Georg Richter
2015-06-26 11:00:01 +02:00
parent ce013e7ab1
commit 33027b899b
2 changed files with 17 additions and 0 deletions

View File

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