From 23e090626a9138f44905a5a8e681e8952f98aac7 Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Sat, 24 Apr 2021 09:06:16 +0300 Subject: MDEV-20842 Crash using versioning plugin functions after plugin was removed from server Remove plugin functions via item_create_remove() at deinit time. --- plugin/versioning/versioning.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'plugin') diff --git a/plugin/versioning/versioning.cc b/plugin/versioning/versioning.cc index 7e3c29e1494..56f8f1f5a1d 100644 --- a/plugin/versioning/versioning.cc +++ b/plugin/versioning/versioning.cc @@ -175,6 +175,7 @@ static int versioning_plugin_init(void *p __attribute__ ((unused))) static int versioning_plugin_deinit(void *p __attribute__ ((unused))) { DBUG_ENTER("versioning_plugin_deinit"); + (void) item_create_remove(func_array); DBUG_RETURN(0); } -- cgit v1.2.1