Memleak in IsOptionMember

Bug #1671630 reported by Stefan Pöschel
This bug affects 1 person
Affects Status Importance Assigned to Milestone
imagemagick (Debian)
Fix Released
imagemagick (Ubuntu)
Fix Released

Bug Description

The ImageMagick version shipped with Ubuntu 16.04 (version 8: is affected by a memory leak. This has been fixed in the following commit:

So I request this fix to be backported to 16.04 (and other affect version, if applicable; 14.04 is not affected).

The tool ODR-PadEnc which I maintain is affected by the bug:

Here one of the outputs that Valgrind procudes for each invokation - in this case, I used 14.04 with as I have 16.04 only running in a VM. The patches within do NOT address this bug.

==1961== 455,322 bytes in 111 blocks are definitely lost in loss record 1,761 of 1,762
==1961== at 0x4C2AB80: malloc (in /usr/lib/valgrind/
==1961== by 0x5E2DB3E: AcquireString (string.c:132)
==1961== by 0x5E2FC10: StringToArgv (string.c:2196)
==1961== by 0x5DC46F7: IsOptionMember (option.c:2278)
==1961== by 0x5F3F789: WritePNGImage (png.c:11996)
==1961== by 0x5D12B11: WriteImage (constitute.c:1184)
==1961== by 0x5CDE340: ImageToBlob (blob.c:1607)
==1961== by 0x40D7A5: SLSManager::encodeFile(std::string const&, int, bool) (sls.cpp:392)
==1961== by 0x4038B1: main (odr-padenc.cpp:324)

Tags: xenial
Changed in imagemagick (Ubuntu):
status: New → In Progress
Changed in imagemagick (Debian):
status: Unknown → Fix Released
tags: added: xenial
Changed in imagemagick (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.