]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
scheduler/colorman.c: Fix memory leak during creating color profile
authorzdohnal <zdohnal@redhat.com>
Fri, 24 Nov 2023 05:08:17 +0000 (06:08 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Nov 2023 05:08:17 +0000 (06:08 +0100)
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 #813


Trivial merge