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

Potential memory leak in the serialize method of varlen type #1368

@chenboy

Description

@chenboy

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions