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 5168 - [patch] Memory leak in RAWINPUT_JoystickOpen
Summary: [patch] Memory leak in RAWINPUT_JoystickOpen
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.13
Hardware: x86_64 Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-30 13:32 UTC by Mathieu Eyraud
Modified: 2020-06-03 00:08 UTC (History)
0 users

See Also:


Attachments
free hwdata (444 bytes, patch)
2020-05-30 13:32 UTC, Mathieu Eyraud
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Eyraud 2020-05-30 13:32:01 UTC
Created attachment 4362 [details]
free hwdata

Variable 'hwdata' is not freed in RAWINPUT_JoystickOpen if device->driver->OpenJoystick() fails.
Comment 1 Sam Lantinga 2020-06-03 00:08:53 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/1fbf23608152