Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
df7c02d8
Commit
df7c02d8
authored
Mar 28, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Free allocated memory even in case of error.
parent
aa19b26c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
myisam/rt_split.c
myisam/rt_split.c
+5
-2
No files found.
myisam/rt_split.c
View file @
df7c02d8
...
@@ -301,8 +301,11 @@ int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key,
...
@@ -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
)))
if
(
!
(
new_page
=
(
uchar
*
)
my_alloca
((
uint
)
keyinfo
->
block_length
)))
return
-
1
;
{
err_code
=
-
1
;
goto
split_err
;
}
stop
=
task
+
(
max_keys
+
1
);
stop
=
task
+
(
max_keys
+
1
);
cur1
=
rt_PAGE_FIRST_KEY
(
page
,
nod_flag
);
cur1
=
rt_PAGE_FIRST_KEY
(
page
,
nod_flag
);
cur2
=
rt_PAGE_FIRST_KEY
(
new_page
,
nod_flag
);
cur2
=
rt_PAGE_FIRST_KEY
(
new_page
,
nod_flag
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment