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

lvtinydom: minor cleanups / simplifications #540

Merged
merged 4 commits into from
Oct 26, 2023

Conversation

benoit-pierre
Copy link
Contributor

@benoit-pierre benoit-pierre commented Oct 24, 2023

This change is Reviewable

Comment on lines -17707 to 17708
delete me;
NPELEM = NULL;
}
delete NPELEM;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this double-delete of the same pointerwasn't causing a crash, like double-free does ? delete is safer ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it was not a double delete: the second one was passed NULL, which like free is valid and a no-op.

@Frenzie
Copy link
Member

Frenzie commented Oct 26, 2023

Rebased or squashed?

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.

3 participants