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-518:

Check if mysql->options.extension was allocated before checking
async_context: this is handled by IS_MYSQL_ASYNC() macro now.
This commit is contained in:
Georg Richter
2020-11-27 18:33:06 +01:00
parent 820faff627
commit 2ff01c121c

View File

@@ -1701,7 +1701,7 @@ error:
/* 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) && if (!(client_flag & CLIENT_REMEMBER_OPTIONS) &&
!mysql->options.extension->async_context) !(IS_MYSQL_ASYNC(mysql)))
mysql_close_options(mysql); mysql_close_options(mysql);
return(0); return(0);
} }