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

Merge from 2.3: Free options if CLIENT_REMEMBER_OPTIONS wasn't set

This commit is contained in:
Georg Richter
2016-08-16 18:38:41 +02:00
parent 429b166cbe
commit b68843a93d

View File

@@ -1479,6 +1479,8 @@ error:
end_server(mysql);
/* only free the allocated memory, user needs to call mysql_close */
mysql_close_memory(mysql);
if (!(client_flag & CLIENT_REMEMBER_OPTIONS))
mysql_close_options(mysql);
return(0);
}