Yubico / libfido2

Provides library functionality for FIDO2, including communication with a device over USB or NFC.
Other
581 stars 153 forks source link

Fix potential memory leak #795

Closed beldmit closed 5 months ago

beldmit commented 5 months ago

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