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
6f79b3fa
Commit
6f79b3fa
authored
Mar 24, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a memory leak in dbug
parent
99aa3d46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
dbug/dbug.c
dbug/dbug.c
+11
-1
No files found.
dbug/dbug.c
View file @
6f79b3fa
...
@@ -1624,7 +1624,7 @@ static void FreeState(CODE_STATE *cs, int free_state)
...
@@ -1624,7 +1624,7 @@ static void FreeState(CODE_STATE *cs, int free_state)
*/
*/
void
_db_end_
()
void
_db_end_
()
{
{
CODE_STATE
*
cs
;
CODE_STATE
*
cs
,
dummy_cs
;
/*
/*
Set _dbug_on_ to be able to do full reset even when DEBUGGER_OFF was
Set _dbug_on_ to be able to do full reset even when DEBUGGER_OFF was
called after dbug was initialized
called after dbug was initialized
...
@@ -1633,8 +1633,18 @@ void _db_end_()
...
@@ -1633,8 +1633,18 @@ void _db_end_()
cs
=
code_state
();
cs
=
code_state
();
if
(
cs
)
if
(
cs
)
{
while
(
cs
->
stack
&&
cs
->
stack
!=
&
init_settings
)
while
(
cs
->
stack
&&
cs
->
stack
!=
&
init_settings
)
FreeState
(
cs
,
1
);
FreeState
(
cs
,
1
);
}
else
{
cs
=
&
dummy_cs
;
bzero
(
cs
,
sizeof
(
*
cs
));
}
cs
->
stack
=
&
init_settings
;
FreeState
(
cs
,
0
);
}
}
...
...
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