ReadTIFFImage memory leak

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
arepi
Posts: 2
Joined: 2010-09-01T07:28:30-07:00
Authentication code: 8675308

ReadTIFFImage memory leak

Post by arepi »

Missing DestroyQuantumInfo before end of ReadTIFFImage function.

It's solved it in my own build.

Code: Select all

    quantum_info=DestroyQuantumInfo(quantum_info);
  } while (status == MagickTrue);
  quantum_info=DestroyQuantumInfo(quantum_info);     <--- this one
  (void) TIFFSetWarningHandler(warning_handler);
  (void) TIFFSetErrorHandler(error_handler);
  TIFFClose(tiff);
  return(GetFirstImageInList(image));
}
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ReadTIFFImage memory leak

Post by magick »

We'll get a patch into ImageMagick 6.7.3-3 Beta by sometime tomorrow. Thanks.
Post Reply