Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add guard for WFDnsResolverTask #1453

Merged
merged 3 commits into from
Dec 19, 2023
Merged

Add guard for WFDnsResolverTask #1453

merged 3 commits into from
Dec 19, 2023

Conversation

kedixa
Copy link
Contributor

@kedixa kedixa commented Dec 19, 2023

No description provided.

err = new int[2]{this->state, this->error};

if (WFTaskFactory::release_guard_safe(guard_name, err) == 0)
delete[] err;
Copy link
Contributor

Choose a reason for hiding this comment

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

我们项目里好像是写成delete []err 这样的。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@Barenboim Barenboim marked this pull request as ready for review December 19, 2023 13:51
@Barenboim Barenboim merged commit 9adc5ae into sogou:master Dec 19, 2023
2 checks passed
@kedixa kedixa deleted the dns_resolver branch January 12, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants