From: cristy Date: Sun, 29 Dec 2013 13:30:36 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3017 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed5aadcb339722e61e194076150a1a9a05f7e854;p=imagemagick --- diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c index e1d7e30d1..d1e63fc0d 100644 --- a/MagickCore/threshold.c +++ b/MagickCore/threshold.c @@ -965,7 +965,10 @@ static ThresholdMap *GetThresholdMapFile(const char *xml,const char *filename, break; } if (threshold == (XMLTreeInfo *) NULL) - return(map); + { + thresholds=DestroyXMLTree(thresholds); + return(map); + } description=GetXMLTreeChild(threshold,"description"); if (description == (XMLTreeInfo *) NULL) {