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
abe4952f
Commit
abe4952f
authored
Feb 10, 2006
by
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use free'd memory, bad idea
Free all memory with mutex and destroy mutex as final step
parent
d7f164a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
sql/sql_table.cc
sql/sql_table.cc
+7
-5
No files found.
sql/sql_table.cc
View file @
abe4952f
...
...
@@ -864,20 +864,22 @@ release_table_log()
TABLE_LOG_MEMORY_ENTRY
*
used_list
=
global_table_log
.
first_used
;
DBUG_ENTER
(
"release_table_log"
);
VOID
(
pthread_mutex_destroy
(
&
LOCK_gtl
)
);
lock_global_table_log
(
);
while
(
used_list
)
{
TABLE_LOG_MEMORY_ENTRY
*
tmp
=
used_list
;
TABLE_LOG_MEMORY_ENTRY
*
tmp
=
used_list
->
next_log_entry
;
my_free
((
char
*
)
used_list
,
MYF
(
0
));
used_list
=
tmp
->
next_log_entry
;
used_list
=
tmp
;
}
while
(
free_list
)
{
TABLE_LOG_MEMORY_ENTRY
*
tmp
=
free_list
;
TABLE_LOG_MEMORY_ENTRY
*
tmp
=
free_list
->
next_log_entry
;
my_free
((
char
*
)
free_list
,
MYF
(
0
));
free_list
=
tmp
->
next_log_entry
;
free_list
=
tmp
;
}
VOID
(
my_close
(
global_table_log
.
file_id
,
MYF
(
0
)));
unlock_global_table_log
();
VOID
(
pthread_mutex_destroy
(
&
LOCK_gtl
));
DBUG_VOID_RETURN
;
}
...
...
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