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
c89f3798
Commit
c89f3798
authored
Jan 14, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-21478 fixup: Avoid a memory leak
parent
ea9cd97f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+3
-4
No files found.
storage/innobase/handler/handler0alter.cc
View file @
c89f3798
/*****************************************************************************
/*****************************************************************************
Copyright (c) 2005, 2019, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2005, 2019, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2013, 202
0
, MariaDB Corporation.
Copyright (c) 2013, 202
1
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
the terms of the GNU General Public License as published by the Free Software
...
@@ -4657,6 +4657,7 @@ prepare_inplace_alter_table_dict(
...
@@ -4657,6 +4657,7 @@ prepare_inplace_alter_table_dict(
}
}
if
(
dict_col_name_is_reserved
(
field
->
field_name
))
{
if
(
dict_col_name_is_reserved
(
field
->
field_name
))
{
wrong_column_name:
dict_mem_table_free
(
ctx
->
new_table
);
dict_mem_table_free
(
ctx
->
new_table
);
my_error
(
ER_WRONG_COLUMN_NAME
,
MYF
(
0
),
my_error
(
ER_WRONG_COLUMN_NAME
,
MYF
(
0
),
field
->
field_name
);
field
->
field_name
);
...
@@ -4674,9 +4675,7 @@ prepare_inplace_alter_table_dict(
...
@@ -4674,9 +4675,7 @@ prepare_inplace_alter_table_dict(
||
col_len
!=
sizeof
(
doc_id_t
)
||
col_len
!=
sizeof
(
doc_id_t
)
||
strcmp
(
field
->
field_name
,
||
strcmp
(
field
->
field_name
,
FTS_DOC_ID_COL_NAME
))
{
FTS_DOC_ID_COL_NAME
))
{
my_error
(
ER_WRONG_COLUMN_NAME
,
MYF
(
0
),
goto
wrong_column_name
;
field
->
field_name
);
goto
new_clustered_failed
;
}
}
}
}
...
...
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