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
7e0e04f0
Commit
7e0e04f0
authored
Oct 04, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed problem with freeing stack memory
parent
9f575281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
sql/sql_base.cc
sql/sql_base.cc
+2
-4
No files found.
sql/sql_base.cc
View file @
7e0e04f0
...
...
@@ -913,14 +913,13 @@ TABLE *open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root,
*/
{
char
path
[
FN_REFLEN
];
TABLE
tab
;
if
(
!
table
)
table
=
&
tab
;
strxnmov
(
path
,
FN_REFLEN
,
mysql_data_home
,
"/"
,
table_list
->
db
,
"/"
,
table_list
->
real_name
,
reg_ext
,
NullS
);
(
void
)
unpack_filename
(
path
,
path
);
if
(
mysql_frm_type
(
path
)
==
FRMTYPE_VIEW
)
{
TABLE
tab
;
// will not be used (because it's VIEW) but have to be passed
table
=
&
tab
;
VOID
(
pthread_mutex_lock
(
&
LOCK_open
));
if
(
open_unireg_entry
(
thd
,
table
,
table_list
->
db
,
table_list
->
real_name
,
...
...
@@ -932,7 +931,6 @@ TABLE *open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root,
else
{
DBUG_ASSERT
(
table_list
->
view
);
my_free
((
gptr
)
table
,
MYF
(
0
));
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
DBUG_RETURN
(
0
);
// VIEW
}
...
...
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