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

Use correct strdup function in macro #323

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Use correct strdup function in macro #323

merged 1 commit into from
Dec 1, 2023

Conversation

simo5
Copy link
Member

@simo5 simo5 commented Dec 1, 2023

Coverity disovered a mismatch between the function we used to allocated the strings and the function used to free them.
In practice this is not a problem on most systems, but there are those wehre free() and OPENSSL_free() may actually differ.

Fixes:
CID 469502: Incorrect deallocator used (ALLOC_FREE_MISMATCH)
CID 469503: Incorrect deallocator used (ALLOC_FREE_MISMATCH)

Coverity disovered a mismatch between the function we used to allocated
the strings and the function used to free them.
In practice this is not a problem on most systems, but there are those
wehre free() and OPENSSL_free() may actually differ.

Fixes:
 CID 469502: Incorrect deallocator used (ALLOC_FREE_MISMATCH)
 CID 469503: Incorrect deallocator used (ALLOC_FREE_MISMATCH)

Signed-off-by: Simo Sorce <[email protected]>
@simo5 simo5 merged commit 891c5ae into latchset:main Dec 1, 2023
10 of 19 checks passed
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.

1 participant