1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-4043 Fix memory leaks - 1

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 the JobList dtor after the query finishes.
This commit is contained in:
Gagan Goel
2020-06-11 19:01:40 -04:00
parent feee26f1ab
commit 881091c535
7 changed files with 54 additions and 2 deletions

View File

@ -150,8 +150,14 @@ SimpleFilter::SimpleFilter(const SimpleFilter& rhs) :
SimpleFilter::~SimpleFilter()
{
//delete fOp;
delete fLhs;
delete fRhs;
if (fLhs != NULL)
delete fLhs;
if (fRhs != NULL)
delete fRhs;
fLhs = NULL;
fRhs = NULL;
}
/**