summaryrefslogtreecommitdiff
path: root/mysys/my_error.c
diff options
context:
space:
mode:
authormonty@mysql.com/nosik.monty.fi <>2006-11-21 22:32:58 +0200
committermonty@mysql.com/nosik.monty.fi <>2006-11-21 22:32:58 +0200
commitf6682e2743d6b3cff53a6e6b1499b28f10fb3b92 (patch)
tree7976fdc96a4eb6af989b3c9caa89d1e2cb5729d5 /mysys/my_error.c
parent959e90676848a34ee7b6d66653a1d66c8a351c13 (diff)
downloadmariadb-git-f6682e2743d6b3cff53a6e6b1499b28f10fb3b92.tar.gz
Added --debug-info to most clients to detect memory leaks in mysql-test-run
Moved .progress files into the log directory Moved 'cluster' database tables into the MySQL database, to not have 'cluster' beeing a reserved database name Fixed bug where mysqld got a core dump when trying to use a table created by MySQL 3.23 Fixed some compiler warnings Fixed small memory leak in libmysql Note that this doesn't changeset doesn't include the new mysqldump.c code required to run some tests. This will be added when I merge 5.0 to 5.1
Diffstat (limited to 'mysys/my_error.c')
-rw-r--r--mysys/my_error.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysys/my_error.c b/mysys/my_error.c
index e60c4eb21d7..cc7c28b6207 100644
--- a/mysys/my_error.c
+++ b/mysys/my_error.c
@@ -252,3 +252,15 @@ const char **my_error_unregister(int first, int last)
return errmsgs;
}
+
+
+void my_error_unregister_all(void)
+{
+ struct my_err_head *list, *next;
+ for (list= my_errmsgs_globerrs.meh_next; list; list= next)
+ {
+ next= list->meh_next;
+ my_free((gptr) list, MYF(0));
+ }
+ my_errmsgs_list= &my_errmsgs_globerrs;
+}