diff options
author | Marti Maria <info@littlecms.com> | 2013-10-30 13:46:34 +0100 |
---|---|---|
committer | Marti Maria <info@littlecms.com> | 2013-10-30 13:46:34 +0100 |
commit | b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79 (patch) | |
tree | b67b72c56c13c71744fa879251af3822e6b783c0 /src/cmsxform.c | |
parent | fda1211c344178b05b71b5c8e0b45412b49c0599 (diff) | |
download | lcms2-b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79.tar.gz |
Fixing endianess detection and memory leaks
Diffstat (limited to 'src/cmsxform.c')
-rw-r--r-- | src/cmsxform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmsxform.c b/src/cmsxform.c index 37a21b3..b39c116 100644 --- a/src/cmsxform.c +++ b/src/cmsxform.c @@ -698,6 +698,7 @@ cmsHTRANSFORM CMSEXPORT cmsCreateExtendedTransform(cmsContext ContextID, // Check channel count if ((cmsChannelsOf(EntryColorSpace) != cmsPipelineInputChannels(Lut)) || (cmsChannelsOf(ExitColorSpace) != cmsPipelineOutputChannels(Lut))) { + cmsPipelineFree(Lut); cmsSignalError(ContextID, cmsERROR_NOT_SUITABLE, "Channel count doesn't match. Profile is corrupted"); return NULL; } |