1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

MCOL-4043 Fix memory leaks - 1 (second attempt)

simpleScalarFilterToParseTree() performs a dynamic allocation
of a ParseTree object, but this memory is never freed later.
We now keep track of this allocation and perform the delete
in ~CSEP/CSEP::unserialize() after the query finishes.
This commit is contained in:
Gagan Goel
2020-06-19 15:39:49 -04:00
parent 6d5053e651
commit b48cf64b78
8 changed files with 75 additions and 2 deletions

View File

@@ -772,6 +772,12 @@ public:
return ((fSessionID & 0x80000000) != 0);
}
virtual void setDynamicParseTreeVec(
const std::vector<execplan::ParseTree*>& dynamicParseTreeVec)
{
fDynamicParseTreeVec = dynamicParseTreeVec;
}
/**
* Protected stuff
*/
@@ -922,6 +928,8 @@ private:
bool fIsDML;
std::string fTimeZone;
std::vector<execplan::ParseTree*> fDynamicParseTreeVec;
};
/**