]> git.ipfire.org Git - thirdparty/cups.git/commit
scheduler/colorman.c: Fix memory leak during creating color profile
authorZdenek Dohnal <zdohnal@redhat.com>
Mon, 30 Oct 2023 09:21:47 +0000 (10:21 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Mon, 30 Oct 2023 09:21:47 +0000 (10:21 +0100)
commit6dcf52cf1a27769ff1d9de32ac788d6a0118afff
tree68314d34eec8973fbfdc8f38edc9002cf12d4e16
parent082c5ae12a72889312452716efed3cf8833e3518
scheduler/colorman.c: Fix memory leak during creating color profile

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
.
CHANGES.md
scheduler/colorman.c