summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--myisam/rt_split.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/myisam/rt_split.c b/myisam/rt_split.c
index 2690e4beac1..879cc0dc1dd 100644
--- a/myisam/rt_split.c
+++ b/myisam/rt_split.c
@@ -301,8 +301,11 @@ int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key,
}
if (!(new_page = (uchar*)my_alloca((uint)keyinfo->block_length)))
- return -1;
-
+ {
+ err_code= -1;
+ goto split_err;
+ }
+
stop = task + (max_keys + 1);
cur1 = rt_PAGE_FIRST_KEY(page, nod_flag);
cur2 = rt_PAGE_FIRST_KEY(new_page, nod_flag);