summaryrefslogtreecommitdiff
path: root/include/my_getopt.h
diff options
context:
space:
mode:
authoracurtis/antony@xiphis.org/ltamd64.xiphis.org <>2007-10-04 10:55:08 -0700
committeracurtis/antony@xiphis.org/ltamd64.xiphis.org <>2007-10-04 10:55:08 -0700
commit3060f0be8eb3c23ab854beb2da51bc4752a6d62f (patch)
treed62a7dda2fcb26f6bd04fe1653abe226e24daa01 /include/my_getopt.h
parent0f36ce8f863d61bee202fdf85ba1ac8f61fba39d (diff)
downloadmariadb-git-3060f0be8eb3c23ab854beb2da51bc4752a6d62f.tar.gz
Bug#31382
"Disabled plugin is provoking Valgrind error" If there are any auto-alloced string plug-in options, memory is allocated during the call for handle_options(). We must free this memory if we are not installing the plug-in.
Diffstat (limited to 'include/my_getopt.h')
-rw-r--r--include/my_getopt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_getopt.h b/include/my_getopt.h
index c74f3ed672e..30c2eb9531a 100644
--- a/include/my_getopt.h
+++ b/include/my_getopt.h
@@ -68,6 +68,7 @@ extern my_error_reporter my_getopt_error_reporter;
extern int handle_options (int *argc, char ***argv,
const struct my_option *longopts, my_get_one_option);
+extern void my_cleanup_options(const struct my_option *options);
extern void my_print_help(const struct my_option *options);
extern void my_print_variables(const struct my_option *options);
extern void my_getopt_register_get_addr(uchar ** (*func_addr)(const char *, uint,