summaryrefslogtreecommitdiff
path: root/sql/events.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/events.cc')
-rw-r--r--sql/events.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/events.cc b/sql/events.cc
index e23dcd21954..41f6aac5d64 100644
--- a/sql/events.cc
+++ b/sql/events.cc
@@ -907,10 +907,7 @@ end:
if (res)
deinit();
if (!had_thd)
- {
delete thd;
- set_current_thd(0);
- }
DBUG_RETURN(res);
}