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

Remove useless conditional #8

Merged
merged 1 commit into from
Oct 13, 2023
Merged

Remove useless conditional #8

merged 1 commit into from
Oct 13, 2023

Conversation

Mango0x45
Copy link
Contributor

As per the free(3) manual page:

The free() function deallocates the memory allocation pointed to by
ptr.  If ptr is a NULL pointer, no operation is performed.

Checking to see if ‘p’ is not NULL before freeing is useless, since
‘free(NULL)’ is defined to be a no-op.

As per the free(3) manual page:

	The free() function deallocates the memory allocation pointed to by
	ptr.  If ptr is a NULL pointer, no operation is performed.

Checking to see if ‘p’ is not NULL before freeing is useless, since
‘free(NULL)’ is defined to be a no-op.
@maxim2266 maxim2266 merged commit 0d61257 into maxim2266:master Oct 13, 2023
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