Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
3.3.1
-
None
Description
This issue was initialliy
reported by Hyung Hwan in PR #199
If an attempt to connect to a remote server was aborted via mysql_close() allocated memory for addrinfo wlll not be freed.
Example:
int main() |
{
|
MYSQL mysql, *ret;
|
MYSQL_RES *res;
|
MYSQL_ROW row;
|
int status; |
|
mysql_init(&mysql);
|
mysql_options(&mysql, MYSQL_OPT_NONBLOCK, 0);
|
|
status= mysql_real_connect_start(&ret, &mysql, "10.10.10.10", "username", "password", NULL, 3306, NULL, 0); |
mysql_close (&mysql);
|
|
return 0; |
}
|