| Summary: | [PATCH] Fix memory leaks in IMG_xpm.c | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | Joshua Beck <b10654934> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | 1.2.10 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
Patch that fixes the memory leaks against current hg
Patch that fixes the memory leaks against current hg, and compiles |
||
Created attachment 672 [details]
Patch that fixes the memory leaks against current hg, and compiles
This patch is now hg changeset bb611e7cb1e5, thanks! --ryan. |
Created attachment 669 [details] Patch that fixes the memory leaks against current hg cppcheck found these errors in SDL_image: [IMG_xpm.c:262]: (error) Common realloc mistake: 'linebuf' nulled but not freed upon failure [IMG_xpm.c:280]: (error) Common realloc mistake: 'linebuf' nulled but not freed upon failure [IMG_xpm.c:127]: (error) Memory leak: hash.table The included patch fixes all of them.