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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e3a4c1a6
Commit
e3a4c1a6
authored
Jul 01, 2005
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimization during review
Add extra check to delete [] to ensure we are not deleting not allocated data
parent
f4a30c4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sql/sql_select.cc
sql/sql_select.cc
+4
-5
No files found.
sql/sql_select.cc
View file @
e3a4c1a6
...
...
@@ -8222,12 +8222,10 @@ cp_buffer_from_ref(THD *thd, TABLE_REF *ref)
thd
->
count_cuted_fields
=
CHECK_FIELD_IGNORE
;
for
(
store_key
**
copy
=
ref
->
key_copy
;
*
copy
;
copy
++
)
{
int
res
;
if
((
res
=
(
*
copy
)
->
copy
()))
if
((
*
copy
)
->
copy
()
&
1
)
{
thd
->
count_cuted_fields
=
save_count_cuted_fields
;
if
((
res
=
res
&
1
))
return
res
;
// Something went wrong
return
1
;
// Something went wrong
}
}
thd
->
count_cuted_fields
=
save_count_cuted_fields
;
...
...
@@ -8818,7 +8816,8 @@ setup_copy_fields(THD *thd, TMP_TABLE_PARAM *param,
DBUG_RETURN
(
0
);
err:
delete
[]
param
->
copy_field
;
// This is never 0
if
(
copy
)
delete
[]
param
->
copy_field
;
param
->
copy_field
=
0
;
err2:
DBUG_RETURN
(
TRUE
);
...
...
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