You've already forked mariadb-columnstore-engine
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:
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user