Home | History | Annotate | Download | only in lcms
      1 diff --git a/third_party/lcms/src/cmsopt.c b/third_party/lcms/src/cmsopt.c
      2 index f885ef3..684910d 100644
      3 --- a/third_party/lcms/src/cmsopt.c
      4 +++ b/third_party/lcms/src/cmsopt.c
      5 @@ -612,7 +612,7 @@ cmsBool OptimizeByResampling(cmsPipeline** Lut, cmsUInt32Number Intent, cmsUInt3
      6  
      7      // Allocate the CLUT
      8      CLUT = cmsStageAllocCLut16bit(Src ->ContextID, nGridPoints, Src ->InputChannels, Src->OutputChannels, NULL);
      9 -    if (CLUT == NULL) return FALSE;
     10 +    if (CLUT == NULL) goto Error;
     11  
     12      // Add the CLUT to the destination LUT
     13      if (!cmsPipelineInsertStage(Dest, cmsAT_END, CLUT)) {
     14