diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2023-03-03 10:12:49 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2023-03-03 10:50:34 +0000 |
commit | 4a33e7c0b46f0c8d940bd2bafbe60b114428413e (patch) | |
tree | d1df1f3e7a9f3bc65dbf9b0941e378747b551e61 /MAINTAINERS | |
parent | 91a3cc2e994be587def3b70762f15461101d43a1 (diff) | |
download | colord-4a33e7c0b46f0c8d940bd2bafbe60b114428413e.tar.gz |
lib/icc: Always close profile when loading fails
cd_icc_load() always takes ownership of the passed profile, but will
leak it if the initial condition fails and the funtion returns an error.
Only if the actual profile loading fails, will the passed profile
eventually not be leaked. Fix this by closing it immediately in the
first case.
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions