diff options
author | pem@mysql.comhem.se <> | 2005-06-10 16:14:01 +0200 |
---|---|---|
committer | pem@mysql.comhem.se <> | 2005-06-10 16:14:01 +0200 |
commit | 46619fa0e3e6eaeea0f23475cf51d78df8d0d393 (patch) | |
tree | d62d5453cb34063af9f715acecb554a0ee41ef38 /sql/sp_rcontext.cc | |
parent | 254bdaf64a86855ffe578271a017b38259614d89 (diff) | |
download | mariadb-git-46619fa0e3e6eaeea0f23475cf51d78df8d0d393.tar.gz |
Post review and additional fix for BUG#10968: Stored procedures: crash if long loop.
Fixed valgrind complaints. This fixes the memory leak problems for
procedured, and partially for functions. There's still a leak involving
results from functions that turned out to be too involved, so it will be
fixed separately.
Diffstat (limited to 'sql/sp_rcontext.cc')
-rw-r--r-- | sql/sp_rcontext.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sp_rcontext.cc b/sql/sp_rcontext.cc index 2e79a1e2533..daca6b38b46 100644 --- a/sql/sp_rcontext.cc +++ b/sql/sp_rcontext.cc @@ -32,6 +32,7 @@ sp_rcontext::sp_rcontext(uint fsize, uint hmax, uint cmax) : m_count(0), m_fsize(fsize), m_result(NULL), m_hcount(0), m_hsp(0), m_hfound(-1), m_ccount(0) { + callers_mem_root= NULL; in_handler= FALSE; m_frame= (Item **)sql_alloc(fsize * sizeof(Item*)); m_handler= (sp_handler_t *)sql_alloc(hmax * sizeof(sp_handler_t)); |