Skip to content

ppd-cache: fix memory leak#1344

Merged
michaelrsweet merged 1 commit intoOpenPrinting:masterfrom
Plombo:leak-fix
Aug 23, 2025
Merged

ppd-cache: fix memory leak#1344
michaelrsweet merged 1 commit intoOpenPrinting:masterfrom
Plombo:leak-fix

Conversation

@Plombo
Copy link
Copy Markdown
Contributor

@Plombo Plombo commented Aug 22, 2025

These fields were being allocated by _ppdCacheCreateWith*() but never freed by anything. Free them in _ppdCacheDestroy() to fix the leak.

Based on commit 7e4b961850b66baf895fc0 in libppd.

These fields were being allocated by _ppdCacheCreateWith*() but never
freed by anything. Free them in _ppdCacheDestroy() to fix the leak.

Based on commit 7e4b961850b66baf895fc0 in libppd.
Copy link
Copy Markdown
Member

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, wonder why we missed this...

@michaelrsweet michaelrsweet self-assigned this Aug 23, 2025
@michaelrsweet michaelrsweet added bug Something isn't working priority-low labels Aug 23, 2025
@michaelrsweet michaelrsweet added this to the v2.5 milestone Aug 23, 2025
@michaelrsweet michaelrsweet merged commit 488aa95 into OpenPrinting:master Aug 23, 2025
3 of 6 checks passed
@houranled
Copy link
Copy Markdown
Contributor

These fields were being allocated by _ppdCacheCreateWith*() but never freed by anything. Free them in _ppdCacheDestroy() to fix the leak.

Based on commit 7e4b961850b66baf895fc0 in libppd.

Well done! How long have you used this software? How did you find this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority-low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants