Skip to content

Conversation

@adonis0147
Copy link
Contributor

Proposed changes

Issue Number: close #8018 .

Problem Summary:

Please refer to #8018 .

Checklist(Required)

  1. Does it affect the original behavior: No.
  2. Has unit tests been added: No Need.
  3. Has document been added or modified: No Need.
  4. Does it need to update dependencies: No.
  5. Are there any changes that cannot be rolled back: No.

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@BiteTheDDDDt
Copy link
Contributor

A simpler solution is just add delete at end of function.

    if (place != nullptr) {
        delete[] place;
    }

@adonis0147
Copy link
Contributor Author

@BiteTheDDDDt Yes, but I want to follow the principle of RAII in modern C++ to avoid call delete explicitly.
I will use another simple way to do it.

@BiteTheDDDDt
Copy link
Contributor

LGTM

morningman
morningman previously approved these changes Feb 11, 2022
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Feb 11, 2022
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@morningman
Copy link
Contributor

hi @adonis0147 , please rebase the master to resolve the conflict

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Feb 12, 2022
@adonis0147
Copy link
Contributor Author

adonis0147 commented Feb 12, 2022

Hi @morningman, I have rebased the master branch.

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morningman morningman merged commit 18e2071 into apache:master Feb 14, 2022
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Feb 14, 2022
@adonis0147 adonis0147 deleted the dev branch February 14, 2022 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Memory problems in agg_test.cpp.

4 participants