summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/os/os0file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/storage/innobase/os/os0file.c b/storage/innobase/os/os0file.c
index c07f8f4bf95..0045b8731e4 100644
--- a/storage/innobase/os/os0file.c
+++ b/storage/innobase/os/os0file.c
@@ -3233,6 +3233,9 @@ os_aio_array_create(
#endif
#if defined(LINUX_NATIVE_AIO)
+ array->aio_ctx = NULL;
+ array->aio_events = NULL;
+
/* If we are not using native aio interface then skip this
part of initialization. */
if (!srv_use_native_aio) {
@@ -3313,6 +3316,13 @@ os_aio_array_free(
os_event_free(array->not_full);
os_event_free(array->is_empty);
+#if defined(LINUX_NATIVE_AIO)
+ if (srv_use_native_aio) {
+ ut_free(array->aio_events);
+ ut_free(array->aio_ctx);
+ }
+#endif /* LINUX_NATIVE_AIO */
+
ut_free(array->slots);
ut_free(array);
}