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 memory leak #795

Merged
merged 2 commits into from
Mar 22, 2024
Merged

Fix potential memory leak #795

merged 2 commits into from
Mar 22, 2024

Conversation

beldmit
Copy link
Contributor

@beldmit beldmit commented Mar 21, 2024

If first allocation succeeds and the 2nd fails, the id variable may be allocated and not freed. It's probably near to impossible case but it's worth fixing it for automation scan's sake

Copy link
Contributor

@LDVG LDVG left a comment

Choose a reason for hiding this comment

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

Thanks!

@LDVG LDVG requested a review from kongeo March 22, 2024 09:29
@LDVG LDVG merged commit 48087f5 into Yubico:main Mar 22, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants