Skip to content

Fix memory leak in usbOpen error path#64

Merged
aveenismail merged 1 commit intomasterfrom
fix-leak
Jan 16, 2026
Merged

Fix memory leak in usbOpen error path#64
aveenismail merged 1 commit intomasterfrom
fix-leak

Conversation

@jamiehankins
Copy link
Contributor

Add missing free(ctx) in the cleanup section when device initialization fails. This prevents memory leaks during USB device enumeration when devices fail to initialize.

Add missing free(ctx) in the cleanup section when device initialization fails. This prevents memory leaks during USB device enumeration when devices fail to initialize.
@jamiehankins jamiehankins self-assigned this Jan 15, 2026
@aveenismail aveenismail merged commit 45c0915 into master Jan 16, 2026
11 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.

2 participants