From 2ff01c121c65a867d80016ba311aa286843565dc Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Fri, 27 Nov 2020 18:33:06 +0100 Subject: [PATCH] Fix for CONC-518: Check if mysql->options.extension was allocated before checking async_context: this is handled by IS_MYSQL_ASYNC() macro now. --- libmariadb/mariadb_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmariadb/mariadb_lib.c b/libmariadb/mariadb_lib.c index 3c883691..74703e0f 100644 --- a/libmariadb/mariadb_lib.c +++ b/libmariadb/mariadb_lib.c @@ -1701,7 +1701,7 @@ error: /* only free the allocated memory, user needs to call mysql_close */ mysql_close_memory(mysql); if (!(client_flag & CLIENT_REMEMBER_OPTIONS) && - !mysql->options.extension->async_context) + !(IS_MYSQL_ASYNC(mysql))) mysql_close_options(mysql); return(0); }