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
59616668
Commit
59616668
authored
Oct 14, 2007
by
pekka@sama.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#29390: fix mem leak introduced in previous cset
parent
82da7623
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
ndb/src/ndbapi/NdbScanFilter.cpp
ndb/src/ndbapi/NdbScanFilter.cpp
+32
-0
No files found.
ndb/src/ndbapi/NdbScanFilter.cpp
View file @
59616668
...
...
@@ -22,6 +22,7 @@
#include <Interpreter.hpp>
#include <signaldata/AttrInfo.hpp>
#include "NdbApiSignal.hpp"
#include "NdbUtil.hpp"
#ifdef VM_TRACE
#include <NdbEnv.h>
...
...
@@ -621,12 +622,43 @@ NdbScanFilterImpl::handle_filter_too_large()
op
->
theStatus
=
m_initial_op_status
;
// reset interpreter state to initial
NdbBranch
*
tBranch
=
op
->
theFirstBranch
;
while
(
tBranch
!=
NULL
)
{
NdbBranch
*
tmp
=
tBranch
;
tBranch
=
tBranch
->
theNext
;
op
->
theNdb
->
releaseNdbBranch
(
tmp
);
}
op
->
theFirstBranch
=
NULL
;
op
->
theLastBranch
=
NULL
;
NdbLabel
*
tLabel
=
op
->
theFirstLabel
;
while
(
tLabel
!=
NULL
)
{
NdbLabel
*
tmp
=
tLabel
;
tLabel
=
tLabel
->
theNext
;
op
->
theNdb
->
releaseNdbLabel
(
tmp
);
}
op
->
theFirstLabel
=
NULL
;
op
->
theLastLabel
=
NULL
;
NdbCall
*
tCall
=
op
->
theFirstCall
;
while
(
tCall
!=
NULL
)
{
NdbCall
*
tmp
=
tCall
;
tCall
=
tCall
->
theNext
;
op
->
theNdb
->
releaseNdbCall
(
tmp
);
}
op
->
theFirstCall
=
NULL
;
op
->
theLastCall
=
NULL
;
NdbSubroutine
*
tSubroutine
=
op
->
theFirstSubroutine
;
while
(
tSubroutine
!=
NULL
)
{
NdbSubroutine
*
tmp
=
tSubroutine
;
tSubroutine
=
tSubroutine
->
theNext
;
op
->
theNdb
->
releaseNdbSubroutine
(
tmp
);
}
op
->
theFirstSubroutine
=
NULL
;
op
->
theLastSubroutine
=
NULL
;
op
->
theNoOfLabels
=
0
;
op
->
theNoOfSubroutines
=
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