OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
1k stars 178 forks source link

scheduler/colorman.c: Fix memory leak during creating color profile #815

Closed zdohnal closed 9 months ago

zdohnal commented 10 months ago

Since the array profiles is set to use strdup() as a copy function, we don't have to use strdup() on the element which is passed as parameter of cupsArrayAdd() - using the strdup() as we used till now causes memory leak.

Reproducer is the same as https://github.com/OpenPrinting/cups/pull/813