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 4638 - patch: Plug memory leak when parsing colormap of XCF file
Summary: patch: Plug memory leak when parsing colormap of XCF file
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.4
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-19 22:28 UTC by janisozaur
Modified: 2019-06-10 22:30 UTC (History)
1 user (show)

See Also:


Attachments
Plug_memory_leak_when_parsing_colormap_of_XCF_file.patch (719 bytes, patch)
2019-05-19 22:28 UTC, janisozaur
Details | Diff
bug-4638.xcf (64 bytes, image/x-xcf)
2019-05-19 22:29 UTC, janisozaur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description janisozaur 2019-05-19 22:28:29 UTC
Created attachment 3788 [details]
Plug_memory_leak_when_parsing_colormap_of_XCF_file.patch

prop.data.colormap.cmap is allocated, but not freed. This patch fixes the issue
Comment 1 janisozaur 2019-05-19 22:29:30 UTC
Created attachment 3789 [details]
bug-4638.xcf
Comment 2 Sam Lantinga 2019-06-10 22:30:26 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL_image/rev/5112afb71c02