horizontal_factor,(image->rows+vertical_factor-1)/vertical_factor,
MagickTrue,exception);
if (chroma_image == (Image *) NULL)
- ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
+ {
+ scanline=(unsigned char *) RelinquishMagickMemory(scanline);
+ ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
+ }
/*
Convert raster image to pixel packets.
*/
status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
if (status == MagickFalse)
{
+ scanline=(unsigned char *) RelinquishMagickMemory(scanline);
image=DestroyImageList(image);
return((Image *) NULL);
}
status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
if (status == MagickFalse)
{
+ scanline=(unsigned char *) RelinquishMagickMemory(scanline);
image=DestroyImageList(image);
return((Image *) NULL);
}
status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
if (status == MagickFalse)
{
+ scanline=(unsigned char *) RelinquishMagickMemory(scanline);
image=DestroyImageList(image);
return((Image *) NULL);
}
TriangleFilter,exception);
chroma_image=DestroyImage(chroma_image);
if (resize_image == (Image *) NULL)
- ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
+ {
+ scanline=(unsigned char *) RelinquishMagickMemory(scanline);
+ ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
+ }
for (y=0; y < (ssize_t) image->rows; y++)
{
q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
AcquireNextImage(image_info,image,exception);
if (GetNextImageInList(image) == (Image *) NULL)
{
+ scanline=(unsigned char *) RelinquishMagickMemory(scanline);
image=DestroyImageList(image);
return((Image *) NULL);
}