summaryrefslogtreecommitdiff
path: root/sql/sp_head.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r--sql/sp_head.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index 3ad81542ce7..6a9cf97d739 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -520,7 +520,10 @@ public:
virtual ~sp_lex_keeper()
{
if (m_lex_resp)
+ {
+ lex_end(m_lex);
delete m_lex;
+ }
}
/*