Skip to content

Conversation

@petesmc
Copy link
Contributor

@petesmc petesmc commented Aug 10, 2025

Closes #433

@esheldon
Copy link
Owner

esheldon commented Sep 3, 2025

If the pointer given to free is null, the function does nothing

@esheldon
Copy link
Owner

esheldon commented Sep 3, 2025

Thus the check if (slist->data != NULL) { is all that is needed, which ensures there is an array over which we can loop

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.

Perform null check before free

2 participants