apple / cups

Apple CUPS Sources
https://www.cups.org
Apache License 2.0
1.85k stars 452 forks source link

Memory leak in function cupsdAddEvent #6145

Open Hripsime-H opened 8 months ago

Hripsime-H commented 8 months ago

Memory leak in function cupsdAddEvent. The memory leak is reported by a static analyzer tool developed at CAST (https://www.linkedin.com/company/cast-center).

Specifically, dynamic memory is allocated here if cupsd_send_notification fails to add temp here, allocated memory remains not freed.