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 asynchronous (reconnect)
Fixed memory leak after reconnect/change user
This commit is contained in:
@@ -374,7 +374,7 @@ MYSQL *test_connect(struct my_tests_st *test) {
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
mysql_options(mysql, MYSQL_REPORT_DATA_TRUNCATION, "1");
|
||||
mysql_options(mysql, MYSQL_REPORT_DATA_TRUNCATION, &i);
|
||||
mysql_options(mysql, MYSQL_OPT_CONNECT_TIMEOUT, (const char *)&i);
|
||||
|
||||
/* option handling */
|
||||
|
Reference in New Issue
Block a user