summaryrefslogtreecommitdiff
path: root/third_party/lcms2-2.6/src/cmsopt.c
diff options
context:
space:
mode:
authorkcwu <kcwu@chromium.org>2016-09-22 18:26:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-22 18:26:22 -0700
commit39ee9dfac1c6d286a4075c7e2435fe1cfe365bad (patch)
treebd2ff8c788b1411ee34d84e1c47d50f251a5cf01 /third_party/lcms2-2.6/src/cmsopt.c
parentfe0179ded8202939ea4f2b92a879b8dede7821ea (diff)
downloadpdfium-39ee9dfac1c6d286a4075c7e2435fe1cfe365bad.tar.xz
Fix memory leaks in lcms
found by libfuzzer Review-Url: https://codereview.chromium.org/2359243003
Diffstat (limited to 'third_party/lcms2-2.6/src/cmsopt.c')
-rw-r--r--third_party/lcms2-2.6/src/cmsopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/lcms2-2.6/src/cmsopt.c b/third_party/lcms2-2.6/src/cmsopt.c
index f885ef3f60..684910d799 100644
--- a/third_party/lcms2-2.6/src/cmsopt.c
+++ b/third_party/lcms2-2.6/src/cmsopt.c
@@ -612,7 +612,7 @@ cmsBool OptimizeByResampling(cmsPipeline** Lut, cmsUInt32Number Intent, cmsUInt3
// Allocate the CLUT
CLUT = cmsStageAllocCLut16bit(Src ->ContextID, nGridPoints, Src ->InputChannels, Src->OutputChannels, NULL);
- if (CLUT == NULL) return FALSE;
+ if (CLUT == NULL) goto Error;
// Add the CLUT to the destination LUT
if (!cmsPipelineInsertStage(Dest, cmsAT_END, CLUT)) {