You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
Merge from 2.3: Free options if CLIENT_REMEMBER_OPTIONS wasn't set
This commit is contained in:
@@ -1479,6 +1479,8 @@ error:
|
|||||||
end_server(mysql);
|
end_server(mysql);
|
||||||
/* only free the allocated memory, user needs to call mysql_close */
|
/* only free the allocated memory, user needs to call mysql_close */
|
||||||
mysql_close_memory(mysql);
|
mysql_close_memory(mysql);
|
||||||
|
if (!(client_flag & CLIENT_REMEMBER_OPTIONS))
|
||||||
|
mysql_close_options(mysql);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user