Skip to content

Fix push consumer dtor segfault #50

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

Merged
merged 1 commit into from
Jan 4, 2019
Merged

Fix push consumer dtor segfault #50

merged 1 commit into from
Jan 4, 2019

Conversation

messense
Copy link
Member

@messense messense commented Jan 3, 2019

If the push consumer has not been started, deallocate it will segfault in current code.

If the push consumer has not been started, deallocate it will segfault in current code.
@ShannonDing ShannonDing added the enhancement New feature or request label Jan 4, 2019
@ShannonDing ShannonDing added this to the 1.2.1 milestone Jan 4, 2019
@ShannonDing ShannonDing merged commit 847ef22 into apache:master Jan 4, 2019
@ifplusor
Copy link
Contributor

@messense see http://www.cplusplus.com/reference/new/operator%20delete/ delete null-pointer will do nothing like as free(NULL), so i think your change is ineffective.

@ifplusor
Copy link
Contributor

i see this is resolved in your PR #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants