summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-06-19 13:26:39 +0300
committerunknown <bell@sanja.is.com.ua>2004-06-19 13:26:39 +0300
commit49aebb9891f075e0a5c53bdf76aba72fc6019e52 (patch)
treede0668df4035239b5c431106c9ad56c9a3a43d47 /sql/item_cmpfunc.cc
parent94f36589c72c7c916802e2c8da9cb2f3ecc72b4a (diff)
downloadmariadb-git-49aebb9891f075e0a5c53bdf76aba72fc6019e52.tar.gz
cleanup for Item_func_regex (Bug #4199)
mysql-test/r/func_regexp.result: test of cleaning regex in PS mysql-test/t/func_regexp.test: test of cleaning regex in PS sql/item_cmpfunc.cc: cleanup for Item_func_regex sql/item_cmpfunc.h: cleanup for Item_func_regex
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 446d72ac143..fcab16d4d49 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -2298,15 +2298,19 @@ longlong Item_func_regex::val_int()
}
-Item_func_regex::~Item_func_regex()
+void Item_func_regex::cleanup()
{
+ DBUG_ENTER("Item_func_regex::cleanup");
+ Item_bool_func::cleanup();
if (regex_compiled)
{
regfree(&preg);
regex_compiled=0;
}
+ DBUG_VOID_RETURN;
}
+
#endif /* USE_REGEX */