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
c708c116
Commit
c708c116
authored
Apr 06, 2006
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed reading of free'd memory when opening a table with non-existing plugin
parent
13902e1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/table.cc
sql/table.cc
+3
-3
No files found.
sql/table.cc
View file @
c708c116
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
void
open_table_error
(
TABLE_SHARE
*
share
,
int
error
,
int
db_errno
,
void
open_table_error
(
TABLE_SHARE
*
share
,
int
error
,
int
db_errno
,
myf
errortype
,
int
errarg
);
myf
errortype
,
int
errarg
);
static
int
open_binary_frm
(
THD
*
thd
,
TABLE_SHARE
*
share
,
uchar
*
head
,
static
int
open_binary_frm
(
THD
*
thd
,
TABLE_SHARE
*
share
,
File
file
);
uchar
*
head
,
File
file
);
static
void
fix_type_pointers
(
const
char
***
array
,
TYPELIB
*
point_to_type
,
static
void
fix_type_pointers
(
const
char
***
array
,
TYPELIB
*
point_to_type
,
uint
types
,
char
**
names
);
uint
types
,
char
**
names
);
static
uint
find_field
(
Field
**
fields
,
uint
start
,
uint
length
);
static
uint
find_field
(
Field
**
fields
,
uint
start
,
uint
length
);
...
@@ -717,8 +717,8 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head,
...
@@ -717,8 +717,8 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head,
keyinfo
->
parser
=
plugin_lock
(
&
parser_name
,
MYSQL_FTPARSER_PLUGIN
);
keyinfo
->
parser
=
plugin_lock
(
&
parser_name
,
MYSQL_FTPARSER_PLUGIN
);
if
(
!
keyinfo
->
parser
)
if
(
!
keyinfo
->
parser
)
{
{
my_free
(
buff
,
MYF
(
0
));
my_error
(
ER_PLUGIN_IS_NOT_LOADED
,
MYF
(
0
),
parser_name
.
str
);
my_error
(
ER_PLUGIN_IS_NOT_LOADED
,
MYF
(
0
),
parser_name
.
str
);
my_free
(
buff
,
MYF
(
0
));
goto
err
;
goto
err
;
}
}
}
}
...
...
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