| Summary: | Memory leak in SDL_mixer in native_midi_common.c in function MIDItoStream | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | Amit Jain <amit.jain83> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Attachments: | Patch fixes memory leak in SDL_mixer | ||
Created attachment 2227 [details]
Patch fixes memory leak in SDL_mixer
Fixed, thanks! https://hg.libsdl.org/SDL_mixer/rev/2c0a45f9a767 |
Memory leak in SDL_mixer-2.0.0 in native_midi_common.c in function MIDItoStream(). return without deletion of allocated memory. static MIDIEvent *MIDItoStream(MIDIFile *mididata) { ... ... ... track = (MIDIEvent**) calloc(1, sizeof(MIDIEvent*) * mididata->nTracks); if (NULL == track) return NULL; ... ... ... }