summaryrefslogtreecommitdiff
path: root/server-tools
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@mysql.com>2008-11-21 17:38:42 +0400
committerAlexey Botchkov <holyfoot@mysql.com>2008-11-21 17:38:42 +0400
commitd445b215d10d1239d097d9fb362f232ec9bdb2f4 (patch)
tree0ee040b7dd3afd19bf08093c172f7445efa8e238 /server-tools
parent1cd8b9f700a3d20e0af43896b366cef6ef0e7d4c (diff)
downloadmariadb-git-d445b215d10d1239d097d9fb362f232ec9bdb2f4.tar.gz
Bug#25058 ignored return codes in memory allocation functions
memory allocation error checks added for functions calling insert_dynamic() per-file messages: myisam/mi_delete.c Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled myisam/mi_write.c Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled server-tools/instance-manager/instance_options.cc Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled sql/slave.cc Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled sql/sp_head.cc Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled sql/sp_head.h Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled sql/sp_pcontext.cc Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled sql/sp_pcontext.h Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled sql/sql_select.cc Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled sql/sql_yacc.yy Bug#25058 ignored return codes in memory allocation functions out-of-memory errors handled
Diffstat (limited to 'server-tools')
-rw-r--r--server-tools/instance-manager/instance_options.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/server-tools/instance-manager/instance_options.cc b/server-tools/instance-manager/instance_options.cc
index d4ca2ad570f..c01b09de2b2 100644
--- a/server-tools/instance-manager/instance_options.cc
+++ b/server-tools/instance-manager/instance_options.cc
@@ -522,8 +522,7 @@ int Instance_options::add_option(const char* option)
switch (selected_options->type) {
case SAVE_WHOLE_AND_ADD:
*(selected_options->value)= tmp;
- insert_dynamic(&options_array,(gptr) &tmp);
- return 0;
+ return insert_dynamic(&options_array,(gptr) &tmp);
case SAVE_VALUE:
*(selected_options->value)= strchr(tmp, '=') + 1;
return 0;