MagickExport MagickBooleanType SetImageProfile(Image *image,const char *name,
  const StringInfo *profile)
{
  return(SetImageProfileInternal(image,name,profile,MagickFalse));
}

The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.