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

setting pointers to NULL after free #629

Merged
merged 1 commit into from
Nov 9, 2023
Merged

setting pointers to NULL after free #629

merged 1 commit into from
Nov 9, 2023

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Nov 3, 2023

Fixes: #593

This PR introduces a macro for freeing and setting a pointer to NULL and applies it where possible.

@engelmi engelmi force-pushed the free-and-null branch 2 times, most recently from 317ef62 to 53ae53d Compare November 8, 2023 14:56
@engelmi engelmi marked this pull request as ready for review November 8, 2023 14:56
@engelmi engelmi requested a review from mwperina November 8, 2023 14:57
@dougsland
Copy link
Contributor

LGTM

Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

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

LGTM

@mwperina
Copy link
Member

mwperina commented Nov 9, 2023

/packit rebuild-failed

Copy link
Member

@mkemel mkemel left a comment

Choose a reason for hiding this comment

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

LGTM

setting pointers to NULL after free

Signed-off-by: Michael Engel <mengel@redhat.com>
@engelmi engelmi merged commit b72be6f into main Nov 9, 2023
17 checks passed
@engelmi engelmi deleted the free-and-null branch November 9, 2023 14:23
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.

NULLing on free
4 participants