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 4280 - Memory leak in XCF handling
Summary: Memory leak in XCF handling
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.3
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-28 18:47 UTC by janisozaur
Modified: 2018-09-29 03:56 UTC (History)
0 users

See Also:


Attachments
fix-mem-leak-xcf.c.patch (569 bytes, patch)
2018-09-28 18:47 UTC, janisozaur
Details | Diff
Memleak reproducer (80 bytes, image/x-xcf)
2018-09-28 18:48 UTC, janisozaur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description janisozaur 2018-09-28 18:47:47 UTC
Created attachment 3322 [details]
fix-mem-leak-xcf.c.patch

XCF loading can lead to a memory leak. Attached patch fixes this leak.
Comment 1 janisozaur 2018-09-28 18:48:45 UTC
Created attachment 3323 [details]
Memleak reproducer
Comment 2 Sam Lantinga 2018-09-29 03:56:10 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_image/rev/8b4ee1d72a2a