This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Description
In
|
data = (pool == nullptr) ? new char[size] : (char *)pool->Allocate(size); |
, we'll create a new char array to buffer the serialized varlen type if no memory pool is specified, I think it will not be deleted afterwards so this may cause a memory leak. I found this when working on the explain executor, which returns the plan string as a tuple.
Detail see this build:
jenkins.db.cs.cmu.edu:8080/blue/organizations/jenkins/peloton/detail/PR-1357/4/