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

Summary: patch: Plug memory leak when parsing colormap of XCF file
Product: SDL_image Reporter: janisozaur <janisozaur+libsdl>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: janisozaur+libsdl
Version: 2.0.4   
Hardware: x86_64   
OS: Linux   
Attachments: Plug_memory_leak_when_parsing_colormap_of_XCF_file.patch
bug-4638.xcf

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