Open Hripsime-H opened 8 months ago
Memory leak in function add_banner. The memory leak is reported by a static analyzer tool developed at CAST (https://www.linkedin.com/company/cast-center).
add_banner
Specifically, dynamic memories are allocated here and here if cupsArrayAdd fails to add temp here, allocated memories remain not freed. There are similar cases in other functions which use cupsArrayAdd.
cupsArrayAdd
temp
Hmm, this leak is easier to follow than #6145. Anyone from the team seen this? Seems like a memory leak to me.
Memory leak in function
add_banner
. The memory leak is reported by a static analyzer tool developed at CAST (https://www.linkedin.com/company/cast-center).Specifically, dynamic memories are allocated here and here if
cupsArrayAdd
fails to addtemp
here, allocated memories remain not freed. There are similar cases in other functions which usecupsArrayAdd
.