summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2003-04-02 20:42:28 +0200
committerunknown <pem@mysql.com>2003-04-02 20:42:28 +0200
commit2eebaf7bd364ec449c220160e6ff3d59461d13a3 (patch)
tree9fcfdb116729ea80bfec3c92c22a63e896243b06 /sql/sp.cc
parent60e7ad754f2f0467a9419c50714f43f4701f88f2 (diff)
downloadmariadb-git-2eebaf7bd364ec449c220160e6ff3d59461d13a3.tar.gz
Getting rid of lots of memory leaks (but not quite all of them yet,
some will go away when temporary code is replaced). mysql-test/r/sp.result: Drop db before creating. mysql-test/t/sp.test: Drop db before creating.
Diffstat (limited to 'sql/sp.cc')
-rw-r--r--sql/sp.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index 5eb12c9fae5..c8dc328ced1 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -19,8 +19,8 @@
#include "sp.h"
#include "sp_head.h"
- static sp_head *
- sp_find_cached_function(THD *thd, char *name, uint namelen);
+static sp_head *
+sp_find_cached_function(THD *thd, char *name, uint namelen);
/*
*
@@ -373,6 +373,13 @@ sp_cache_functions(THD *thd, LEX *lex)
void
sp_clear_function_cache(THD *thd)
{
+ //QQ This doesn't work for some completely mysterious reason, but since this
+ //QQ is tempoarary code anyway, we just ignore it for now.
+ //QQ List_iterator_fast<sp_head> li(thd->spfuns);
+ //QQ sp_head *sp;
+
+ //QQ while ((sp= li++))
+ //QQ sp->destroy();
thd->spfuns.empty();
}