Closed Bug 828301 Opened 11 years ago Closed 11 years ago

Custom linker leaks zlib buffers

Categories

(Core :: mozglue, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file)

While working on a memory reporter for the custom linker, I figured there's about 550K lost in zlib buffers that are never freed. Worse, they are allocated with the system allocator, so they don't even show up in about:memory.
Comment on attachment 699764 [details] [diff] [review]
Free zlib internal buffers when we're done uncompressing in the custom linker

I guess we don't have to worry about zStream not having been successfully inflateInit'd here.
Attachment #699764 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/25ce76f1d0cf
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: