summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2021-04-24 09:06:16 +0300
committerAleksey Midenkov <midenok@gmail.com>2021-04-27 09:08:44 +0300
commit23e090626a9138f44905a5a8e681e8952f98aac7 (patch)
tree68ec2e87bc31624dd6834bde7f22c6ba6ff3bdb1 /plugin
parent6d73282b136058deb992fdb758d8992fa186e73e (diff)
downloadmariadb-git-23e090626a9138f44905a5a8e681e8952f98aac7.tar.gz
MDEV-20842 Crash using versioning plugin functions after plugin was removed from server
Remove plugin functions via item_create_remove() at deinit time.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/versioning/versioning.cc1
1 files changed, 1 insertions, 0 deletions
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);
}