From: Cristy Date: Thu, 6 Jul 2017 01:01:54 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.6-1~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ce9be1bad823ec0683bbb1ab98f0384df29911f;p=imagemagick ... --- diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c index 606ac67b4..92775b5ab 100644 --- a/MagickCore/threshold.c +++ b/MagickCore/threshold.c @@ -428,7 +428,8 @@ static double OTSUThreshold(const Image *image,const double *histogram, if (myu != (double *) NULL) myu=(double *) RelinquishMagickMemory(myu); (void) ThrowMagickException(exception,GetMagickModule(), - ResourceLimitError,"MemoryAllocationFailed",image->filename); + ResourceLimitError,"MemoryAllocationFailed","`%s'",image->filename); + return(-1.0); } /*