1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix for CONC-173: Fixed memory leak in mysql_real_connect

fixed warning in pthread_once
This commit is contained in:
Georg Richter
2016-04-18 09:32:25 +02:00
parent 01f18549dd
commit c70128b50c
4 changed files with 90 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ static int test_conc66(MYSQL *my)
rc= mysql_options(mysql, MYSQL_READ_DEFAULT_FILE, "./my.cnf");
check_mysql_rc(rc, mysql);
sprintf(query, "GRANT ALL ON %s.* TO 'conc66'@'%s' IDENTIFIED BY 'test\";#test'", schema, hostname);
sprintf(query, "GRANT ALL ON %s.* TO 'conc66'@'%s' IDENTIFIED BY 'test\";#test'", schema, hostname ? hostname : "localhost");
rc= mysql_query(my, query);
check_mysql_rc(rc, my);
rc= mysql_query(my, "FLUSH PRIVILEGES");
@@ -64,7 +64,7 @@ static int test_conc66(MYSQL *my)
return FAIL;
}
sprintf(query, "DROP user conc66@%s", hostname);
sprintf(query, "DROP user conc66@%s", hostname ? hostname : "localhost");
rc= mysql_query(my, query);
check_mysql_rc(rc, my);