Closed zdohnal closed 9 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.
profiles
strdup()
cupsArrayAdd()
Reproducer is the same as https://github.com/OpenPrinting/cups/pull/813
Since the array
profiles
is set to usestrdup()
as a copy function, we don't have to usestrdup()
on the element which is passed as parameter ofcupsArrayAdd()
- using thestrdup()
as we used till now causes memory leak.Reproducer is the same as https://github.com/OpenPrinting/cups/pull/813