*p=(char) c;
}
if (comment == (char *) NULL)
- ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
+ {
+ options=DestroyString(options);
+ ThrowReaderException(ResourceLimitError,
+ "MemoryAllocationFailed");
+ }
*p='\0';
(void) SetImageProperty(image,"comment",comment,exception);
comment=DestroyString(comment);
StringToLong(options));
if (profile == (StringInfo *) NULL)
{
+ options=DestroyString(options);
profiles=DestroyLinkedList(profiles,
RelinquishMagickMemory);
ThrowReaderException(ResourceLimitError,
*p=(char) c;
}
if (comment == (char *) NULL)
- ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
+ {
+ options=DestroyString(options);
+ ThrowReaderException(ResourceLimitError,
+ "MemoryAllocationFailed");
+ }
*p='\0';
(void) SetImageProperty(image,"comment",comment,exception);
comment=DestroyString(comment);
StringToLong(options));
if (profile == (StringInfo *) NULL)
{
+ options=DestroyString(options);
profiles=DestroyLinkedList(profiles,
RelinquishMagickMemory);
ThrowReaderException(ResourceLimitError,