| Summary: | [patch] Memory leak in HIDAPI_JoystickConnected | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Mathieu Eyraud <meyraud705> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | fix leak + memmove | ||
Patch added, thanks! https://hg.libsdl.org/SDL/rev/30bc6f3e1ec6 |
Created attachment 4217 [details] fix leak + memmove Memory allocated for device->joysticks on line 589 of SDL_hidapijoystick.c is never freed. Also, use memmove because memory is overlapping.