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

fix potential null pointer dereference found by coverity #185

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

chipitsine
Copy link
Contributor

CID 442404: (#1 of 1): Dereference before null check (REVERSE_INULL) check_after_deref: Null-checking cl_connection->functions suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
452 if ( cl_connection -> functions ) {
453 free( cl_connection -> functions );
454 }
455
456 free( cl_connection );

CID 442404: (lurcher#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking cl_connection->functions suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
452        if ( cl_connection -> functions ) {
453            free( cl_connection -> functions );
454        }
455
456        free( cl_connection );
@lurcher lurcher merged commit a9a66e6 into lurcher:master Oct 7, 2024
@chipitsine chipitsine deleted the cf4 branch October 7, 2024 07:55
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