We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5167

Summary: [patch] Memory leak in GuessXInputDevice
Product: SDL Reporter: Mathieu Eyraud <meyraud705>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.13   
Hardware: x86_64   
OS: Windows (All)   
Attachments: free devices

Description Mathieu Eyraud 2020-05-30 13:26:41 UTC
Created attachment 4361 [details]
free devices

Variable 'devices' is not freed if function GuessXInputDevice, in SDL_xinputjoystick.c, return early.
Comment 1 Sam Lantinga 2020-06-03 00:02:56 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/8711531e9518