|
|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
ma_pvio_close(pvio);
|
|
|
|
|
+ if (mysql->options.extension && mysql->options.extension->async_context &&
|
|
|
|
|
+ mysql->options.extension->async_context->pvio) {
|
|
|
|
|
+ /* async_context->pvio contains dangling pointer. Setting async_context->pvio as NULL*/
|
|
|
|
|
+ /* async_context->pvio contains dangling pointer. Setting async_context->pvio to NULL*/
|
|
|
|
|
+ mysql->options.extension->async_context->pvio = NULL;
|
|
|
|
|
+ }
|
|
|
|
|
goto error;
|
|
|
|
|
@ -16,7 +16,7 @@
|
|
|
|
|
ma_pvio_close(pvio);
|
|
|
|
|
+ if (mysql->options.extension->async_context &&
|
|
|
|
|
+ mysql->options.extension->async_context->pvio) {
|
|
|
|
|
+ /* async_context->pvio contains dangling pointer. Setting async_context->pvio as NULL*/
|
|
|
|
|
+ /* async_context->pvio contains dangling pointer. Setting async_context->pvio to NULL*/
|
|
|
|
|
+ mysql->options.extension->async_context->pvio = NULL;
|
|
|
|
|
+ }
|
|
|
|
|
goto error;
|
|
|
|
|
|