Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix aggregate leak when field doesn't exist. #4610

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Conversation

KiterLuc
Copy link
Contributor

When a field didn't exist, we would throw on the creation of the query field handle after making a handle for the channel. This handle wouldn't get broken after we throw. This solves the issue by creating the handle for the channel after we validated that the field exists.


TYPE: BUG
DESC: Fix aggregate leak when field doesn't exist.

When a field didn't exist, we would throw on the creation of the query field handle after making a handle for the channel. This handle wouldn't get broken after we throw. This solves the issue by creating the handle for the channel after we validated that the field exists.

---
TYPE: BUG
DESC: Fix aggregate leak when field doesn't exist.
Copy link

This pull request has been linked to Shortcut Story #37821: Aggregates leave an allocation behind in case of error.

Copy link
Contributor

@robertbindar robertbindar left a comment

Choose a reason for hiding this comment

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

Thanks Luc, sorry for the bug.

Copy link
Contributor

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@KiterLuc KiterLuc merged commit f6dd42e into dev Jan 10, 2024
62 checks passed
@KiterLuc KiterLuc deleted the lr/aggregate-leak/ch37821 branch January 10, 2024 12:53
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants