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
82c50dc4
Commit
82c50dc4
authored
May 05, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete Items created during Prepared Stat (memory leak bug) (Bug #3451)
parent
7e3cf595
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
sql/sql_parse.cc
sql/sql_parse.cc
+1
-0
sql/sql_prepare.cc
sql/sql_prepare.cc
+5
-2
No files found.
sql/sql_parse.cc
View file @
82c50dc4
...
@@ -1424,6 +1424,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
...
@@ -1424,6 +1424,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
}
}
case
COM_EXECUTE
:
case
COM_EXECUTE
:
{
{
thd
->
free_list
=
NULL
;
mysql_stmt_execute
(
thd
,
packet
,
packet_length
);
mysql_stmt_execute
(
thd
,
packet
,
packet_length
);
break
;
break
;
}
}
...
...
sql/sql_prepare.cc
View file @
82c50dc4
...
@@ -1485,9 +1485,7 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
...
@@ -1485,9 +1485,7 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
thd
->
stmt_backup
.
set_statement
(
thd
);
thd
->
stmt_backup
.
set_statement
(
thd
);
thd
->
set_statement
(
stmt
);
thd
->
set_statement
(
stmt
);
reset_stmt_for_execute
(
stmt
);
reset_stmt_for_execute
(
stmt
);
#ifndef EMBEDDED_LIBRARY
#ifndef EMBEDDED_LIBRARY
if
(
stmt
->
param_count
)
if
(
stmt
->
param_count
)
{
{
...
@@ -1526,6 +1524,11 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
...
@@ -1526,6 +1524,11 @@ void mysql_stmt_execute(THD *thd, char *packet, uint packet_length)
cleanup_items
(
stmt
->
free_list
);
cleanup_items
(
stmt
->
free_list
);
close_thread_tables
(
thd
);
// to close derived tables
close_thread_tables
(
thd
);
// to close derived tables
thd
->
set_statement
(
&
thd
->
stmt_backup
);
thd
->
set_statement
(
&
thd
->
stmt_backup
);
/*
Free Items that were created during this execution of the PS by query
optimizer.
*/
free_items
(
thd
->
free_list
);
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
set_params_data_err:
set_params_data_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