summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2022-03-23 19:34:40 +0200
committerMonty <monty@mariadb.org>2022-04-04 16:14:22 +0300
commit09c7f78c2ef8c43d519eb4bad61d1be177a2c9b2 (patch)
tree330c749739787b962ef8f704da2a77496bb311a1
parent1118b66a22bbbe832b6429d7d1b3478119980f21 (diff)
downloadmariadb-git-09c7f78c2ef8c43d519eb4bad61d1be177a2c9b2.tar.gz
Fixed double free issue in events
Server crashed during shutdown with: "corrupted double-linked list" when running mysql_upgrade multiple times against the server. Reason was that db_repostitory could be freed twice.
-rw-r--r--sql/events.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/events.cc b/sql/events.cc
index 5e15b92dc49..7968697a8ba 100644
--- a/sql/events.cc
+++ b/sql/events.cc
@@ -666,6 +666,7 @@ Events::drop_schema_events(THD *thd, const char *db)
{
db_repository->drop_schema_events(thd, &db_lex);
delete db_repository;
+ db_repository= 0;
}
}
DBUG_VOID_RETURN;