Do not leak fd due to corrupted file. CVE assignment: http://seclists.org/oss-sec/2016/q2/459 Most probable upstream patch: https://anonscm.debian.org/cgit/collab-maint/imagemagick.git/commit/?h=debian-patches/6.8.9.9-4-for-upstream&id=44675e8e48977bbeb1cafade861db2d777a5c7ae
I htink it is probably this one: https://anonscm.debian.org/cgit/collab-maint/imagemagick.git/commit/?h=debian-patches/6.8.9.9-4-for-upstream&id=9fdb9bf2832a1aa2c79002ae5c2ba1e8018e4ff1 as it has: Added missing calls to RelinquishUniqueFileResource. Avoid to leak fd in case of error.